Class RSACredentials
java.lang.Object
com.adobe.internal.pdftoolkit.core.credentials.impl.RSACredentials
- All Implemented Interfaces:
Credentials
- Direct Known Subclasses:
HSMCredentials
-
Constructor Summary
ConstructorsConstructorDescriptionRSACredentials(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
Modifier and TypeMethodDescriptionstatic com.rsa.certj.cert.Certificate[]buildRSACertChain(Certificate[] certChain) Builds an RSA certificate chain from an array of JCE certificates.com.rsa.jsafe.JSAFE_PrivateKeystatic com.rsa.certj.cert.X509CertificategetRSACert(X509Certificate cert) com.rsa.certj.cert.X509Certificatecom.rsa.certj.cert.Certificate[]returns RSA certificate chain.booleanisHSM()static RSACredentialsnewInstance(Credentials credentials) static RSACredentials[]newInstance(Credentials[] 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_UnimplementedExceptionCertificateEncodingExceptioncom.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_UnimplementedExceptionCertificateEncodingExceptioncom.rsa.certj.cert.CertificateException
-
getRSACert
public static com.rsa.certj.cert.X509Certificate getRSACert(X509Certificate cert) throws CertificateEncodingException, com.rsa.certj.cert.CertificateException - Throws:
CertificateEncodingExceptioncom.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:
CertificateEncodingExceptioncom.rsa.certj.cert.CertificateException
-
isHSM
public boolean isHSM()- Specified by:
isHSMin interfaceCredentials
-