Package org.mozilla.jss.pkcs11
Class PK11ECPrivateKey
- java.lang.Object
-
- org.mozilla.jss.pkcs11.PK11PrivKey
-
- org.mozilla.jss.pkcs11.PK11ECPrivateKey
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.AutoCloseable,java.security.interfaces.ECKey,java.security.interfaces.ECPrivateKey,java.security.Key,java.security.PrivateKey,javax.security.auth.Destroyable,PrivateKey
public class PK11ECPrivateKey extends PK11PrivKey implements java.security.interfaces.ECPrivateKey
- 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.KeyProxykeyProxy-
Fields inherited from interface org.mozilla.jss.crypto.PrivateKey
DiffieHellman, DSA, EC, RSA
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPK11ECPrivateKey(byte[] pointer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfinalize()byte[]getEncoded()Subclasses that support encoding can overload this method.java.lang.StringgetFormat()Subclasses that support encoding can overload this method.java.security.spec.ECParameterSpecgetParams()java.math.BigIntegergetS()Not implemented.PrivateKey.TypegetType()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:PrivateKeyReturns the type (RSA or DSA) of this private key.- Specified by:
getTypein interfacePrivateKey- Overrides:
getTypein classPK11PrivKey
-
getParams
public java.security.spec.ECParameterSpec getParams()
- Specified by:
getParamsin interfacejava.security.interfaces.ECKey
-
getS
public java.math.BigInteger getS()
Not implemented. NSS doesn't support extracting private key material like this.- Specified by:
getSin interfacejava.security.interfaces.ECPrivateKey
-
getEncoded
public byte[] getEncoded()
Subclasses that support encoding can overload this method.- Specified by:
getEncodedin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
Subclasses that support encoding can overload this method.- Specified by:
getFormatin interfacejava.security.Key
-
finalize
public void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-