org.mozilla.jss.crypto
public interface PrivateKey extends PrivateKey
| Nested Class Summary | |
|---|---|
| static class | PrivateKey.Type |
| Field Summary | |
|---|---|
| static PrivateKey.Type | DiffieHellman |
| static PrivateKey.Type | DSA |
| static PrivateKey.Type | EC |
| static PrivateKey.Type | RSA |
| Method Summary | |
|---|---|
| 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. |
Deprecated: This ID is based on an implementation that might change. If this functionality is required, it should be provided in another way, such as a function that directly matches a cert and key.
Returns the unique ID of this key. Unique IDs can be used to match certificates to keys.See Also: TokenCertificate