public abstract class TokenPrivateKey extends TokenKey implements com.entrust.toolkit.security.provider.EntrustPrivateKey
A cryptographic operation performed with this key occurs on the PKCS#11 device. Private keying material is sensitive, critical, non-extractable data; no one has access to it.
| Constructor and Description |
|---|
TokenPrivateKey(PKCS11LibraryConnection pkcs11LC,
long session,
long objectHandle,
long slotID)
The constructor; creates a new
TokenPrivateKey instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
java.lang.String |
getType()
Returns the key type, which is "TokenPrivateKey".
|
assertMechanismSupported, destroyCriticalData, getEncoded, getFormat, getObjectHandle, getPKCS11LibraryConnection, getSession, getSlotID, setOwnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroyCriticalDatagetKeyLengthpublic TokenPrivateKey(PKCS11LibraryConnection pkcs11LC, long session, long objectHandle, long slotID)
TokenPrivateKey instance.pkcs11LC - the connection to the PKCS#11 librarysession - the "read only" sessionobjectHandle - the handle to the key on the PKCS#11 deviceslotID - the slot ID under which the session was openedpublic final java.lang.String getType()
public final void delete()
throws java.security.KeyException
delete in interface com.entrust.toolkit.security.provider.EntrustPrivateKeyjava.security.KeyException