Class JCERSAPrivateKey

  • All Implemented Interfaces:
    java.io.Serializable, java.security.interfaces.RSAKey, java.security.interfaces.RSAPrivateKey, java.security.Key, java.security.PrivateKey, javax.security.auth.Destroyable, PKCS12BagAttributeCarrier
    Direct Known Subclasses:
    JCERSAPrivateCrtKey

    public class JCERSAPrivateKey
    extends java.lang.Object
    implements java.security.interfaces.RSAPrivateKey, PKCS12BagAttributeCarrier
    See Also:
    Serialized Form
    • Field Detail

      • modulus

        protected java.math.BigInteger modulus
      • privateExponent

        protected java.math.BigInteger privateExponent
    • Constructor Detail

      • JCERSAPrivateKey

        protected JCERSAPrivateKey()
    • Method Detail

      • getModulus

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

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

        public java.lang.String getAlgorithm()
        Specified by:
        getAlgorithm in interface java.security.Key
      • getFormat

        public java.lang.String getFormat()
        Specified by:
        getFormat in interface java.security.Key
      • getEncoded

        public byte[] getEncoded()
        Specified by:
        getEncoded in interface java.security.Key
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object