Class RSACredentials

    • Constructor Detail

      • 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 Detail

      • 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