Package com.caucho.hessian.security
Class X509Encryption
java.lang.Object
com.caucho.hessian.io.HessianEnvelope
com.caucho.hessian.security.X509Encryption
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the encryption algorithm for the content.The X509 certificate to obtain the public key of the recipient.The private key for decryption.The random number generator for the shared secrets.void
setAlgorithm
(String algorithm) Sets the encryption algorithm for the content.void
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.unwrap
(Hessian2Input in) Unwrap the Hessian input stream with this envelope.Unwrap the envelope after having read the envelope code ('E') and the envelope method.wrap
(Hessian2Output out) Wrap the Hessian output stream in an envelope.
-
Constructor Details
-
X509Encryption
public X509Encryption()
-
-
Method Details
-
setAlgorithm
Sets the encryption algorithm for the content. -
getAlgorithm
Gets the encryption algorithm for the content. -
getCertificate
The X509 certificate to obtain the public key of the recipient. -
setCertificate
The X509 certificate to obtain the public key of the recipient. -
getPrivateKey
The private key for decryption. -
setPrivateKey
The X509 certificate to obtain the public key of the recipient. -
getSecureRandom
The random number generator for the shared secrets. -
setSecureRandom
The random number generator for the shared secrets. -
wrap
Description copied from class:HessianEnvelope
Wrap the Hessian output stream in an envelope.- Specified by:
wrap
in classHessianEnvelope
- Throws:
IOException
-
unwrap
Description copied from class:HessianEnvelope
Unwrap the Hessian input stream with this envelope. It is an error if the actual envelope does not match the expected envelope class.- Specified by:
unwrap
in classHessianEnvelope
- Throws:
IOException
-
unwrapHeaders
Description copied from class:HessianEnvelope
Unwrap the envelope after having read the envelope code ('E') and the envelope method. Called by the EnvelopeFactory for dynamic reading of the envelopes.- Specified by:
unwrapHeaders
in classHessianEnvelope
- Throws:
IOException
-