Package com.caucho.hessian.security
Class X509Signature
java.lang.Object
com.caucho.hessian.io.HessianEnvelope
com.caucho.hessian.security.X509Signature
-
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 key to obtain the private key of the recipient.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 key) The private key.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
-
X509Signature
public X509Signature()
-
-
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 key to obtain the private key of the recipient. -
setPrivateKey
The private key. -
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
-