public class X509Signature extends HessianEnvelope
| Constructor and Description |
|---|
X509Signature() |
| 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 key to obtain the private key of the recipient.
|
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 key)
The private key.
|
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 key)
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.