public class JCECredentials extends Object implements Credentials
| Constructor and Description |
|---|
JCECredentials(PrivateKeyHolder keyHolder,
byte[] derEncodedCert,
byte[][] derEncodedCertChain) |
JCECredentials(PrivateKeyHolder keyHolder,
X509Certificate cert,
Certificate[] certChain) |
JCECredentials(PrivateKey privateKey,
X509Certificate cert,
Certificate[] certChain) |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getCertificate()
Gets the x509 certificate associated with this credential.
|
Certificate[] |
getCertificateChain()
Gets the certificate chain associated with this credential.
|
PrivateKey |
getPrivateKey()
Gets the private key associate with this credential.
|
Provider |
getProvider()
Get a Security Provider for the private key
|
String |
getProviderName()
Get the name of the key Provider
|
boolean |
isHSM() |
void |
setHSM(boolean isHSM) |
void |
setProviderName(String providerName) |
public JCECredentials(PrivateKeyHolder keyHolder, byte[] derEncodedCert, byte[][] derEncodedCertChain) throws PDFInvalidParameterException
PDFInvalidParameterExceptionpublic JCECredentials(PrivateKey privateKey, X509Certificate cert, Certificate[] certChain)
public JCECredentials(PrivateKeyHolder keyHolder, X509Certificate cert, Certificate[] certChain) throws NoSuchAlgorithmException, InvalidKeySpecException, PDFInvalidParameterException
public void setProviderName(String providerName)
public boolean isHSM()
isHSM in interface Credentialspublic void setHSM(boolean isHSM)
public PrivateKey getPrivateKey()
public String getProviderName()
public Provider getProvider()
public X509Certificate getCertificate()
public Certificate[] getCertificateChain()
Copyright © 2010 - 2020 Adobe. All Rights Reserved