public class X509Signature extends HessianEnvelope
| 构造器和说明 |
|---|
X509Signature() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 HessianEnvelopeIOExceptionpublic Hessian2Input unwrap(Hessian2Input in) throws IOException
HessianEnvelopeunwrap 在类中 HessianEnvelopeIOExceptionpublic Hessian2Input unwrapHeaders(Hessian2Input in) throws IOException
HessianEnvelopeunwrapHeaders 在类中 HessianEnvelopeIOExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.