Class X509Signature

java.lang.Object
com.caucho.hessian.io.HessianEnvelope
com.caucho.hessian.security.X509Signature

public class X509Signature extends HessianEnvelope
  • Constructor Details

    • X509Signature

      public X509Signature()
  • Method Details

    • setAlgorithm

      public void setAlgorithm(String algorithm)
      Sets the encryption algorithm for the content.
    • getAlgorithm

      public String getAlgorithm()
      Gets 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 key to obtain the private key of the recipient.
    • setPrivateKey

      public void setPrivateKey(PrivateKey key)
      The private key.
    • 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
      Description copied from class: HessianEnvelope
      Wrap the Hessian output stream in an envelope.
      Specified by:
      wrap in class HessianEnvelope
      Throws:
      IOException
    • unwrap

      public Hessian2Input unwrap(Hessian2Input in) throws IOException
      Description copied from class: HessianEnvelope
      Unwrap the Hessian input stream with this envelope. It is an error if the actual envelope does not match the expected envelope class.
      Specified by:
      unwrap in class HessianEnvelope
      Throws:
      IOException
    • unwrapHeaders

      public Hessian2Input unwrapHeaders(Hessian2Input in) throws IOException
      Description copied from class: HessianEnvelope
      Unwrap the envelope after having read the envelope code ('E') and the envelope method. Called by the EnvelopeFactory for dynamic reading of the envelopes.
      Specified by:
      unwrapHeaders in class HessianEnvelope
      Throws:
      IOException