|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.hessian.io.HessianEnvelope
com.caucho.hessian.security.X509Encryption
public class X509Encryption
| Constructor Summary | |
|---|---|
X509Encryption()
|
|
| Method Summary | |
|---|---|
String |
getAlgorithm()
Gets the encryption algorithm for the content. |
X509Certificate |
getCertificate()
The X509 certificate to obtain the public key of the recipient. |
PrivateKey |
getPrivateKey()
The private key for decryption. |
SecureRandom |
getSecureRandom()
The random number generator for the shared secrets. |
void |
setAlgorithm(String algorithm)
Sets the encryption algorithm for the content. |
void |
setCertificate(X509Certificate cert)
The X509 certificate to obtain the public key of the recipient. |
void |
setPrivateKey(PrivateKey privateKey)
The X509 certificate to obtain the public key of the recipient. |
void |
setSecureRandom(SecureRandom random)
The random number generator for the shared secrets. |
Hessian2Input |
unwrap(Hessian2Input in)
Unwrap the Hessian input stream with this envelope. |
Hessian2Input |
unwrapHeaders(Hessian2Input in)
Unwrap the envelope after having read the envelope code ('E') and the envelope method. |
Hessian2Output |
wrap(Hessian2Output out)
Wrap the Hessian output stream in an envelope. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public X509Encryption()
| Method Detail |
|---|
public void setAlgorithm(String algorithm)
public String getAlgorithm()
public X509Certificate getCertificate()
public void setCertificate(X509Certificate cert)
public PrivateKey getPrivateKey()
public void setPrivateKey(PrivateKey privateKey)
public SecureRandom getSecureRandom()
public void setSecureRandom(SecureRandom random)
public Hessian2Output wrap(Hessian2Output out)
throws IOException
HessianEnvelope
wrap in class HessianEnvelopeIOException
public Hessian2Input unwrap(Hessian2Input in)
throws IOException
HessianEnvelope
unwrap in class HessianEnvelopeIOException
public Hessian2Input unwrapHeaders(Hessian2Input in)
throws IOException
HessianEnvelope
unwrapHeaders in class HessianEnvelopeIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||