javax.security.auth.Destroyable, java.security.Key, java.security.PrivateKey, java.io.SerializablePK11PrivKeypublic interface PrivateKey
extends java.security.PrivateKey
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
PrivateKey.Type |
| Modifier and Type | Field | Description |
|---|---|---|
static PrivateKey.Type |
DiffieHellman |
|
static PrivateKey.Type |
DSA |
|
static PrivateKey.Type |
EC |
|
static PrivateKey.Type |
RSA |
| Modifier and Type | Method | Description |
|---|---|---|
CryptoToken |
getOwningToken() |
Returns the CryptoToken that owns this private key.
|
int |
getStrength() |
Returns the size, in bits, of the modulus of an RSA key.
|
PrivateKey.Type |
getType() |
Returns the type (RSA or DSA) of this private key.
|
byte[] |
getUniqueID() |
Deprecated.
This ID is based on an implementation that might change.
|
static final PrivateKey.Type RSA
static final PrivateKey.Type DSA
static final PrivateKey.Type EC
static final PrivateKey.Type DiffieHellman
PrivateKey.Type getType()
@Deprecated
byte[] getUniqueID()
throws TokenException
TokenExceptionTokenCertificate.getUniqueID()int getStrength()
CryptoToken getOwningToken()