java.lang.Object
com.adobe.internal.pdftoolkit.core.credentials.impl.RSACredentials
All Implemented Interfaces:
Credentials
Direct Known Subclasses:
HSMCredentials

public class RSACredentials extends Object implements Credentials
  • Constructor Details

    • RSACredentials

      public RSACredentials(com.rsa.jsafe.JSAFE_PrivateKey jsafePrivateKey, com.rsa.certj.cert.X509Certificate cert, com.rsa.certj.cert.Certificate[] certChain)
    • RSACredentials

      public RSACredentials(PrivateKey privateKey, com.rsa.certj.cert.X509Certificate cert, com.rsa.certj.cert.Certificate[] certChain) throws com.rsa.jsafe.JSAFE_UnimplementedException
      Throws:
      com.rsa.jsafe.JSAFE_UnimplementedException
  • Method Details

    • newInstance

      public static RSACredentials newInstance(Credentials credentials) throws com.rsa.jsafe.JSAFE_UnimplementedException, CertificateEncodingException, com.rsa.certj.cert.CertificateException
      Throws:
      com.rsa.jsafe.JSAFE_UnimplementedException
      CertificateEncodingException
      com.rsa.certj.cert.CertificateException
    • newInstance

      public static RSACredentials[] newInstance(Credentials[] credentials) throws com.rsa.jsafe.JSAFE_UnimplementedException, CertificateEncodingException, com.rsa.certj.cert.CertificateException
      Throws:
      com.rsa.jsafe.JSAFE_UnimplementedException
      CertificateEncodingException
      com.rsa.certj.cert.CertificateException
    • getRSACert

      public static com.rsa.certj.cert.X509Certificate getRSACert(X509Certificate cert) throws CertificateEncodingException, com.rsa.certj.cert.CertificateException
      Throws:
      CertificateEncodingException
      com.rsa.certj.cert.CertificateException
    • getRSAX509Cert

      public com.rsa.certj.cert.X509Certificate getRSAX509Cert()
    • getJSAFEPrivateKey

      public com.rsa.jsafe.JSAFE_PrivateKey getJSAFEPrivateKey()
    • getRSAX509CertChain

      public com.rsa.certj.cert.Certificate[] getRSAX509CertChain()
      returns RSA certificate chain.
      Returns:
      com.rsa.certj.cert.Certificate[]
    • buildRSACertChain

      public static com.rsa.certj.cert.Certificate[] buildRSACertChain(Certificate[] certChain) throws CertificateEncodingException, com.rsa.certj.cert.CertificateException
      Builds an RSA certificate chain from an array of JCE certificates.
      Parameters:
      certChain -
      Returns:
      Array of com.rsa.certj.cert.Certificate
      Throws:
      CertificateEncodingException
      com.rsa.certj.cert.CertificateException
    • isHSM

      public boolean isHSM()
      Specified by:
      isHSM in interface Credentials