public class X509Encryption extends HessianEnvelope
| Constructor and Description |
|---|
X509Encryption() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public String getAlgorithm()
public void setAlgorithm(String algorithm)
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
HessianEnvelopewrap in class HessianEnvelopeIOExceptionpublic Hessian2Input unwrap(Hessian2Input in) throws IOException
HessianEnvelopeunwrap in class HessianEnvelopeIOExceptionpublic Hessian2Input unwrapHeaders(Hessian2Input in) throws IOException
HessianEnvelopeunwrapHeaders in class HessianEnvelopeIOExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.