Class RSACredentials
- 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 Summary
Constructors Constructor Description RSACredentials(com.rsa.jsafe.JSAFE_PrivateKey jsafePrivateKey, com.rsa.certj.cert.X509Certificate cert, com.rsa.certj.cert.Certificate[] certChain)
RSACredentials(PrivateKey privateKey, com.rsa.certj.cert.X509Certificate cert, com.rsa.certj.cert.Certificate[] certChain)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.rsa.certj.cert.Certificate[]
buildRSACertChain(Certificate[] certChain)
Builds an RSA certificate chain from an array of JCE certificates.com.rsa.jsafe.JSAFE_PrivateKey
getJSAFEPrivateKey()
static com.rsa.certj.cert.X509Certificate
getRSACert(X509Certificate cert)
com.rsa.certj.cert.X509Certificate
getRSAX509Cert()
com.rsa.certj.cert.Certificate[]
getRSAX509CertChain()
returns RSA certificate chain.boolean
isHSM()
static RSACredentials
newInstance(Credentials credentials)
static RSACredentials[]
newInstance(Credentials[] credentials)
-
-
-
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
-
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 interfaceCredentials
-
-