Package org.mozilla.jss.pkcs11
Class PK11RSAPrivateKey
- java.lang.Object
-
- org.mozilla.jss.pkcs11.PK11PrivKey
-
- org.mozilla.jss.pkcs11.PK11RSAPrivateKey
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.AutoCloseable
,java.security.interfaces.RSAKey
,java.security.interfaces.RSAPrivateKey
,java.security.Key
,java.security.PrivateKey
,javax.security.auth.Destroyable
,PrivateKey
public class PK11RSAPrivateKey extends PK11PrivKey implements java.security.interfaces.RSAPrivateKey
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mozilla.jss.crypto.PrivateKey
PrivateKey.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected org.mozilla.jss.pkcs11.KeyProxy
keyProxy
static org.slf4j.Logger
logger
-
Fields inherited from interface org.mozilla.jss.crypto.PrivateKey
DiffieHellman, DSA, EC, RSA
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PK11RSAPrivateKey(byte[] pointer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.mozilla.jss.pkcs11.PK11PrivKey
fromPrivateKeyInfo, fromPrivateKeyInfo, fromPrivateKeyInfo, getAlgorithm, getDSAParams, getKeyType, getOwningToken, getPublicKey, getStrength, getUniqueID, verifyKeyIsOnToken
-
-
-
-
Method Detail
-
getType
public PrivateKey.Type getType()
Description copied from interface:PrivateKey
Returns the type (RSA or DSA) of this private key.- Specified by:
getType
in interfacePrivateKey
- Overrides:
getType
in classPK11PrivKey
-
getModulus
public java.math.BigInteger getModulus()
- Specified by:
getModulus
in interfacejava.security.interfaces.RSAKey
-
getPrivateExponent
public java.math.BigInteger getPrivateExponent()
- Specified by:
getPrivateExponent
in interfacejava.security.interfaces.RSAPrivateKey
-
getEncoded
public byte[] getEncoded()
Subclasses that support encoding can overload this method.- Specified by:
getEncoded
in interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
Subclasses that support encoding can overload this method.- Specified by:
getFormat
in interfacejava.security.Key
-
finalize
public void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
-