Class HSMCredentials

  • All Implemented Interfaces:

    public class HSMCredentials
    extends RSACredentials
    HSMCredentials contains the key handle, session spec and certificates required for signing on an hardware device.
    • 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()