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

public class PK11DSAPrivateKey extends PK11PrivKey implements DSAPrivateKey
See Also:
  • Field Details

    • keyProxy

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

    • PK11DSAPrivateKey

      protected PK11DSAPrivateKey(byte[] pointer)
  • Method Details

    • getType

      public PrivateKey.Type getType()
      Description copied from interface: PrivateKey
      Returns the type (RSA or DSA) of this private key.
      Specified by:
      getType in interface PrivateKey
      Overrides:
      getType in class PK11PrivKey
    • getParams

      public DSAParams getParams()
      If this fails, we just return null, since no exceptions are allowed.
      Specified by:
      getParams in interface DSAKey
    • getX

      public BigInteger getX()
      Not implemented. NSS doesn't support extracting private key material like this.
      Specified by:
      getX in interface DSAPrivateKey
    • getEncoded

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

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

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

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