Class HSMPrivateKey

    • Constructor Summary

      Constructor Description
      HSMPrivateKey​(com.rsa.jsafe.JSAFE_PrivateKey key, com.rsa.jsafe.JSAFE_Session[] session)  
    • Constructor Detail

      • HSMPrivateKey

        public HSMPrivateKey​(com.rsa.jsafe.JSAFE_PrivateKey key,
                             com.rsa.jsafe.JSAFE_Session[] session)
    • Method Detail

      • getEncoded

        public byte[] getEncoded()
        Returns null for the HSM private key .
        Specified by:
        getEncoded in interface Key
      • getJsafeKey

        public com.rsa.jsafe.JSAFE_PrivateKey getJsafeKey()
        Returns the com.rsa.jsafe.JSAFE_PrivateKey that holds private keys for all asymmetric operations
      • setJsafeKey

        public void setJsafeKey​(com.rsa.jsafe.JSAFE_PrivateKey jsafeKey)
        Supply the JSAFE_PrivateKey to be used for HSM signing.
        jsafeKey -
      • getSession

        public com.rsa.jsafe.JSAFE_Session[] getSession()
        Returns an array of JSAFE Sessions that encapsulate the information needed to open a session with a token in a device that supports the Cryptoki (PKCS #11) interface.
        JSAFE_Session[] - array of Jsafe Sessionss that have been established with a token present in a hardware device
      • setSession

        public void setSession​(com.rsa.jsafe.JSAFE_Session[] session)
        Set the array of JSAFESessions that have been established with a token on the hardware device.
        session -