public class X509Encryption extends HessianEnvelope
Constructor and Description |
---|
X509Encryption() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm()
Gets the encryption algorithm for the content.
|
java.security.cert.X509Certificate |
getCertificate()
The X509 certificate to obtain the public key of the recipient.
|
java.security.PrivateKey |
getPrivateKey()
The private key for decryption.
|
java.security.SecureRandom |
getSecureRandom()
The random number generator for the shared secrets.
|
void |
setAlgorithm(java.lang.String algorithm)
Sets the encryption algorithm for the content.
|
void |
setCertificate(java.security.cert.X509Certificate cert)
The X509 certificate to obtain the public key of the recipient.
|
void |
setPrivateKey(java.security.PrivateKey privateKey)
The X509 certificate to obtain the public key of the recipient.
|
void |
setSecureRandom(java.security.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.
|
public void setAlgorithm(java.lang.String algorithm)
public java.lang.String getAlgorithm()
public java.security.cert.X509Certificate getCertificate()
public void setCertificate(java.security.cert.X509Certificate cert)
public java.security.PrivateKey getPrivateKey()
public void setPrivateKey(java.security.PrivateKey privateKey)
public java.security.SecureRandom getSecureRandom()
public void setSecureRandom(java.security.SecureRandom random)
public Hessian2Output wrap(Hessian2Output out) throws java.io.IOException
HessianEnvelope
wrap
in class HessianEnvelope
java.io.IOException
public Hessian2Input unwrap(Hessian2Input in) throws java.io.IOException
HessianEnvelope
unwrap
in class HessianEnvelope
java.io.IOException
public Hessian2Input unwrapHeaders(Hessian2Input in) throws java.io.IOException
HessianEnvelope
unwrapHeaders
in class HessianEnvelope
java.io.IOException