Class PK11RSAPrivateKey

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.AutoCloseable, java.security.interfaces.RSAKey, java.security.Key, java.security.PrivateKey, javax.security.auth.Destroyable, PrivateKey

    public class PK11RSAPrivateKey
    extends PK11PrivKey
    implements java.security.interfaces.RSAKey
    See Also:
    Serialized Form
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • keyProxy

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

      • PK11RSAPrivateKey

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

      • getModulus

        public java.math.BigInteger getModulus()
        Specified by:
        getModulus in interface java.security.interfaces.RSAKey
      • getPrivateExponent

        public java.math.BigInteger getPrivateExponent()
      • 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