Package org.mozilla.jss.pkcs11
Class PK11DSAPrivateKey
java.lang.Object
org.mozilla.jss.pkcs11.PK11PrivKey
org.mozilla.jss.pkcs11.PK11DSAPrivateKey
- All Implemented Interfaces:
Serializable
,AutoCloseable
,DSAKey
,DSAPrivateKey
,Key
,PrivateKey
,Destroyable
,PrivateKey
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mozilla.jss.crypto.PrivateKey
PrivateKey.Type
-
Field Summary
FieldsFields inherited from interface org.mozilla.jss.crypto.PrivateKey
DiffieHellman, DSA, EC, RSA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
finalize()
byte[]
Subclasses that support encoding can overload this method.Subclasses that support encoding can overload this method.If this fails, we just return null, since no exceptions are allowed.getType()
Returns the type (RSA or DSA) of this private key.getX()
Not implemented.Methods inherited from class org.mozilla.jss.pkcs11.PK11PrivKey
fromPrivateKeyInfo, fromPrivateKeyInfo, fromPrivateKeyInfo, getAlgorithm, getDSAParams, getKeyType, getOwningToken, getPublicKey, getStrength, getUniqueID, verifyKeyIsOnToken
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
-
Field Details
-
keyProxy
protected org.mozilla.jss.pkcs11.KeyProxy keyProxy
-
-
Constructor Details
-
PK11DSAPrivateKey
protected PK11DSAPrivateKey(byte[] pointer)
-
-
Method Details
-
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
-
getParams
If this fails, we just return null, since no exceptions are allowed. -
getX
Not implemented. NSS doesn't support extracting private key material like this.- Specified by:
getX
in interfaceDSAPrivateKey
-
getEncoded
public byte[] getEncoded()Subclasses that support encoding can overload this method.- Specified by:
getEncoded
in interfaceKey
-
getFormat
Subclasses that support encoding can overload this method. -
finalize
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-