public class TokenECPrivateKey extends TokenPrivateKey implements java.security.interfaces.ECPrivateKey
A cryptographic operation performed with this key occurs on the PKCS#11 device.
| Constructor and Description |
|---|
TokenECPrivateKey(PKCS11LibraryConnection pkcs11LC,
long session,
long objectHandle,
long slotID)
The constructor; creates a new
TokenECPrivateKey instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Returns the standard algorithm name for this key, which is "EC".
|
int |
getKeyLength()
Return the length of the key in bits.
|
java.security.spec.ECParameterSpec |
getParams()
Returns the domain parameters associated with this key.
|
java.math.BigInteger |
getS()
Not supported.
|
delete, getTypeassertMechanismSupported, destroyCriticalData, getEncoded, getFormat, getObjectHandle, getPKCS11LibraryConnection, getSession, getSlotID, setOwnerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroyCriticalDatapublic TokenECPrivateKey(PKCS11LibraryConnection pkcs11LC, long session, long objectHandle, long slotID)
TokenECPrivateKey instance.pkcs11LC - the connection to the PKCS#11 librarysession - the "read only" sessionobjectHandle - the handle to the private key on the PKCS#11 deviceslotID - the slot ID under which the session was openedpublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.security.spec.ECParameterSpec getParams()
Note: Because this key is stored on a PKCS#11 device, this call extracts the EC domain parameters from the device.
getParams in interface java.security.interfaces.ECKeypublic int getKeyLength()
For example, an EC-P-256 key, this API would return 256.
Note: Because this key is stored on a PKCS#11 device, this call extracts the key length from the device.
getKeyLength in interface KeyWithLengthpublic java.math.BigInteger getS()
getS in interface java.security.interfaces.ECPrivateKeyjava.lang.RuntimeException - always thrown indicating that this API is not supported