public interface PrivateKey
extends java.security.PrivateKey
Modifier and Type | Interface and Description |
---|---|
static class |
PrivateKey.Type |
Modifier and Type | Field and Description |
---|---|
static PrivateKey.Type |
DiffieHellman |
static PrivateKey.Type |
DSA |
static PrivateKey.Type |
EC |
static PrivateKey.Type |
RSA |
Modifier and Type | Method and 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()
Returns the unique ID of this key.
|
static final PrivateKey.Type RSA
static final PrivateKey.Type DSA
static final PrivateKey.Type EC
static final PrivateKey.Type DiffieHellman
PrivateKey.Type getType()
byte[] getUniqueID() throws TokenException
TokenException
TokenCertificate.getUniqueID()
int getStrength()
CryptoToken getOwningToken()