Class HSMCredentials
- java.lang.Object
-
- com.adobe.internal.pdftoolkit.core.credentials.impl.RSACredentials
-
- com.adobe.internal.pdftoolkit.core.credentials.impl.HSMCredentials
-
- All Implemented Interfaces:
Credentials
public class HSMCredentials extends RSACredentials
HSMCredentials contains the key handle, session spec and certificates required for signing on an hardware device.
-
-
Constructor Summary
Constructors Constructor Description HSMCredentials(HSMPrivateKey privateKey, com.rsa.certj.cert.X509Certificate cert, com.rsa.certj.cert.Certificate[] certChain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableCustomDB()
This may later be changed to accept a Custom DB provider implementation.void
enableCustomDB()
The CustomDB provider implementation will be used during HSM signing if this method is called.boolean
getCustomDBPref()
com.rsa.jsafe.JSAFE_Session[]
getSession()
void
setSession(com.rsa.jsafe.JSAFE_Session[] session)
-
Methods inherited from class com.adobe.internal.pdftoolkit.core.credentials.impl.RSACredentials
buildRSACertChain, getJSAFEPrivateKey, getRSACert, getRSAX509Cert, getRSAX509CertChain, isHSM, newInstance, newInstance
-
-
-
-
Constructor Detail
-
HSMCredentials
public HSMCredentials(HSMPrivateKey privateKey, com.rsa.certj.cert.X509Certificate cert, com.rsa.certj.cert.Certificate[] certChain)
-
-
Method Detail
-
getSession
public com.rsa.jsafe.JSAFE_Session[] getSession()
-
setSession
public void setSession(com.rsa.jsafe.JSAFE_Session[] session)
-
enableCustomDB
public void enableCustomDB()
The CustomDB provider implementation will be used during HSM signing if this method is called.
-
disableCustomDB
public void disableCustomDB()
This may later be changed to accept a Custom DB provider implementation. For now this is a way for our clients to see if using our own custom db provides performance improvements during HSM signing.
-
getCustomDBPref
public boolean getCustomDBPref()
-
-