Class 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
    • Field Detail

      • keyProxy

        protected org.mozilla.jss.pkcs11.KeyProxy keyProxy
    • Constructor Detail

      • PK11ECPrivateKey

        protected PK11ECPrivateKey​(byte[] pointer)
    • Method Detail

      • getParams

        public java.security.spec.ECParameterSpec getParams()
        Specified by:
        getParams in interface java.security.interfaces.ECKey
      • getS

        public java.math.BigInteger getS()
        Not implemented. NSS doesn't support extracting private key material like this.
        Specified by:
        getS in interface java.security.interfaces.ECPrivateKey
      • getEncoded

        public byte[] getEncoded()
        Subclasses that support encoding can overload this method.
        Specified by:
        getEncoded in interface java.security.Key
      • getFormat

        public java.lang.String getFormat()
        Subclasses that support encoding can overload this method.
        Specified by:
        getFormat in interface java.security.Key
      • finalize

        public void finalize()
                      throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception