类 X509Encryption
- java.lang.Object
-
- com.alibaba.com.caucho.hessian.io.HessianEnvelope
-
- com.alibaba.com.caucho.hessian.security.X509Encryption
-
public class X509Encryption extends HessianEnvelope
-
-
构造器概要
构造器 构造器 说明 X509Encryption()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAlgorithm()Gets the encryption algorithm for the content.X509CertificategetCertificate()The X509 certificate to obtain the public key of the recipient.PrivateKeygetPrivateKey()The private key for decryption.SecureRandomgetSecureRandom()The random number generator for the shared secrets.voidsetAlgorithm(String algorithm)Sets the encryption algorithm for the content.voidsetCertificate(X509Certificate cert)The X509 certificate to obtain the public key of the recipient.voidsetPrivateKey(PrivateKey privateKey)The X509 certificate to obtain the public key of the recipient.voidsetSecureRandom(SecureRandom random)The random number generator for the shared secrets.Hessian2Inputunwrap(Hessian2Input in)Unwrap the Hessian input stream with this envelope.Hessian2InputunwrapHeaders(Hessian2Input in)Unwrap the envelope after having read the envelope code ('E') and the envelope method.Hessian2Outputwrap(Hessian2Output out)Wrap the Hessian output stream in an envelope.
-
-
-
方法详细资料
-
getAlgorithm
public String getAlgorithm()
Gets the encryption algorithm for the content.
-
setAlgorithm
public void setAlgorithm(String algorithm)
Sets the encryption algorithm for the content.
-
getCertificate
public X509Certificate getCertificate()
The X509 certificate to obtain the public key of the recipient.
-
setCertificate
public void setCertificate(X509Certificate cert)
The X509 certificate to obtain the public key of the recipient.
-
getPrivateKey
public PrivateKey getPrivateKey()
The private key for decryption.
-
setPrivateKey
public void setPrivateKey(PrivateKey privateKey)
The X509 certificate to obtain the public key of the recipient.
-
getSecureRandom
public SecureRandom getSecureRandom()
The random number generator for the shared secrets.
-
setSecureRandom
public void setSecureRandom(SecureRandom random)
The random number generator for the shared secrets.
-
wrap
public Hessian2Output wrap(Hessian2Output out) throws IOException
从类复制的说明:HessianEnvelopeWrap the Hessian output stream in an envelope.- 指定者:
wrap在类中HessianEnvelope- 抛出:
IOException
-
unwrap
public Hessian2Input unwrap(Hessian2Input in) throws IOException
从类复制的说明:HessianEnvelopeUnwrap the Hessian input stream with this envelope. It is an error if the actual envelope does not match the expected envelope class.- 指定者:
unwrap在类中HessianEnvelope- 抛出:
IOException
-
unwrapHeaders
public Hessian2Input unwrapHeaders(Hessian2Input in) throws IOException
从类复制的说明:HessianEnvelopeUnwrap the envelope after having read the envelope code ('E') and the envelope method. Called by the EnvelopeFactory for dynamic reading of the envelopes.- 指定者:
unwrapHeaders在类中HessianEnvelope- 抛出:
IOException
-
-