Package org.mozilla.jss.pkcs11
Class PK11RSAPrivateKey
java.lang.Object
org.mozilla.jss.pkcs11.PK11PrivKey
org.mozilla.jss.pkcs11.PK11RSAPrivateKey
- All Implemented Interfaces:
Serializable,AutoCloseable,RSAKey,Key,PrivateKey,Destroyable,PrivateKey
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mozilla.jss.crypto.PrivateKey
PrivateKey.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.mozilla.jss.pkcs11.KeyProxystatic org.slf4j.LoggerFields inherited from interface org.mozilla.jss.crypto.PrivateKey
DiffieHellman, DSA, EC, RSA -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.mozilla.jss.pkcs11.PK11PrivKey
fromPrivateKeyInfo, fromPrivateKeyInfo, fromPrivateKeyInfo, getAlgorithm, getDSAParams, getKeyType, getOwningToken, getPublicKey, getStrength, getUniqueID, verifyKeyIsOnTokenMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyedMethods inherited from interface java.security.Key
getEncoded, getFormat
-
Field Details
-
logger
public static org.slf4j.Logger logger -
keyProxy
protected org.mozilla.jss.pkcs11.KeyProxy keyProxy
-
-
Constructor Details
-
PK11RSAPrivateKey
protected PK11RSAPrivateKey(byte[] pointer)
-
-
Method Details
-
getType
Description copied from interface:PrivateKeyReturns the type (RSA or DSA) of this private key.- Specified by:
getTypein interfacePrivateKey- Overrides:
getTypein classPK11PrivKey
-
getModulus
- Specified by:
getModulusin interfaceRSAKey
-
getPrivateExponent
-
getEncoded
public byte[] getEncoded()Subclasses that support encoding can overload this method.- Specified by:
getEncodedin interfaceKey
-
getFormat
Subclasses that support encoding can overload this method. -
finalize
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-