public class HSMPrivateKey extends Object implements PrivateKey
| Constructor and Description |
|---|
HSMPrivateKey(com.rsa.jsafe.JSAFE_PrivateKey key,
com.rsa.jsafe.JSAFE_Session[] session) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
byte[] |
getEncoded()
Returns null for the HSM private key .
|
String |
getFormat() |
com.rsa.jsafe.JSAFE_PrivateKey |
getJsafeKey()
Returns the com.rsa.jsafe.JSAFE_PrivateKey that holds private keys for all asymmetric operations
|
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.
|
void |
setJsafeKey(com.rsa.jsafe.JSAFE_PrivateKey jsafeKey)
Supply the JSAFE_PrivateKey to be used for HSM signing.
|
void |
setSession(com.rsa.jsafe.JSAFE_Session[] session)
Set the array of JSAFESessions that have been established with a token on the hardware device.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedpublic HSMPrivateKey(com.rsa.jsafe.JSAFE_PrivateKey key,
com.rsa.jsafe.JSAFE_Session[] session)
public byte[] getEncoded()
getEncoded in interface Keypublic String getAlgorithm()
getAlgorithm in interface Keypublic com.rsa.jsafe.JSAFE_PrivateKey getJsafeKey()
public void setJsafeKey(com.rsa.jsafe.JSAFE_PrivateKey jsafeKey)
jsafeKey - public com.rsa.jsafe.JSAFE_Session[] getSession()
public void setSession(com.rsa.jsafe.JSAFE_Session[] session)
session - Copyright © 2010 - 2020 Adobe. All Rights Reserved