public class PK11RSAPrivateKey extends PK11PrivKey implements java.security.interfaces.RSAPrivateKey
PrivateKey.Type
Modifier and Type | Field and Description |
---|---|
protected org.mozilla.jss.pkcs11.KeyProxy |
keyProxy |
static org.slf4j.Logger |
logger |
DiffieHellman, DSA, EC, RSA
Modifier | Constructor and Description |
---|---|
protected |
PK11RSAPrivateKey(byte[] pointer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finalize() |
byte[] |
getEncoded()
Subclasses that support encoding can overload this method.
|
java.lang.String |
getFormat()
Subclasses that support encoding can overload this method.
|
java.math.BigInteger |
getModulus() |
java.math.BigInteger |
getPrivateExponent() |
PrivateKey.Type |
getType()
Returns the type (RSA or DSA) of this private key.
|
fromPrivateKeyInfo, fromPrivateKeyInfo, fromPrivateKeyInfo, getAlgorithm, getDSAParams, getKeyType, getOwningToken, getPublicKey, getStrength, getUniqueID, verifyKeyIsOnToken
public static org.slf4j.Logger logger
protected org.mozilla.jss.pkcs11.KeyProxy keyProxy
public PrivateKey.Type getType()
PrivateKey
getType
in class PK11PrivKey
public java.math.BigInteger getModulus()
getModulus
in interface java.security.interfaces.RSAKey
public java.math.BigInteger getPrivateExponent()
getPrivateExponent
in interface java.security.interfaces.RSAPrivateKey
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
java.lang.Exception