org.mozilla.jss.pkcs11
public class PK11PrivKey extends PK11Key implements PrivateKey
| Constructor Summary | |
|---|---|
| protected | PK11PrivKey(byte[] pointer) |
| Method Summary | |
|---|---|
| static PK11PrivKey | fromPrivateKeyInfo(PKCS8EncodedKeySpec spec, CryptoToken token)
Imports a PrivateKeyInfo, storing it as a temporary PrivateKey
on the given token.
|
| static PK11PrivKey | fromPrivateKeyInfo(byte[] pki, CryptoToken token)
Imports a PrivateKeyInfo, storing it as a temporary PrivateKey
on the given token.
|
| static PK11PrivKey | fromPrivateKeyInfo(byte[] pki, CryptoToken token, byte[] publicValue)
Imports a PrivateKeyInfo, storing it as a temporary PrivateKey
on the given token.
|
| String | getAlgorithm() |
| protected DSAParameterSpec | getDSAParams() |
| KeyType | getKeyType() |
| CryptoToken | getOwningToken()
Returns a new CryptoToken where this key resides.
|
| int | getStrength()
Returns the size in bits of the modulus of an RSA Private key.
|
| PrivateKey.Type | getType() |
| byte[] | getUniqueID() |
| void | verifyKeyIsOnToken(PK11Token token)
Make sure this key lives on the given token. |
Parameters: publicValue An encoding of the public key, as used by the NSS pk11wrap code. Don't use this unless you know what you're doing.
Returns: The PK11Token that owns this key.