Class JCECredentials
java.lang.Object
com.adobe.internal.pdftoolkit.core.credentials.impl.JCECredentials
- All Implemented Interfaces:
Credentials
JCE Credentials with JDK1.5 HSM support.
-
Constructor Summary
ConstructorsConstructorDescriptionJCECredentials(PrivateKeyHolder keyHolder, byte[] derEncodedCert, byte[][] derEncodedCertChain) JCECredentials(PrivateKeyHolder keyHolder, X509Certificate cert, Certificate[] certChain) JCECredentials(PrivateKey privateKey, X509Certificate cert, Certificate[] certChain) -
Method Summary
Modifier and TypeMethodDescriptionGets the x509 certificate associated with this credential.Gets the certificate chain associated with this credential.Gets the private key associate with this credential.Get a Security Provider for the private keyGet the name of the key ProviderbooleanisHSM()voidsetHSM(boolean isHSM) voidsetProviderName(String providerName)
-
Constructor Details
-
JCECredentials
public JCECredentials(PrivateKeyHolder keyHolder, byte[] derEncodedCert, byte[][] derEncodedCertChain) throws PDFInvalidParameterException - Throws:
PDFInvalidParameterException
-
JCECredentials
-
JCECredentials
public JCECredentials(PrivateKeyHolder keyHolder, X509Certificate cert, Certificate[] certChain) throws NoSuchAlgorithmException, InvalidKeySpecException, PDFInvalidParameterException
-
-
Method Details
-
setProviderName
-
isHSM
public boolean isHSM()- Specified by:
isHSMin interfaceCredentials
-
setHSM
public void setHSM(boolean isHSM) -
getPrivateKey
Gets the private key associate with this credential.- Returns:
- PrivateKey
-
getProviderName
Get the name of the key Provider- Returns:
- String
-
getProvider
Get a Security Provider for the private key- Returns:
- java.security.Provider
-
getCertificate
Gets the x509 certificate associated with this credential.- Returns:
- X509Certificate
-
getCertificateChain
Gets the certificate chain associated with this credential. This method is useful when client already have an ordered certificate chain.- Returns:
- Certificate[]
-