Class JCERSAPublicKey

  • All Implemented Interfaces:
    java.io.Serializable, java.security.interfaces.RSAKey, java.security.interfaces.RSAPublicKey, java.security.Key, java.security.PublicKey

    public class JCERSAPublicKey
    extends java.lang.Object
    implements java.security.interfaces.RSAPublicKey
    See Also:
    Serialized Form
    • Field Detail

      • modulus

        private java.math.BigInteger modulus
      • publicExponent

        private java.math.BigInteger publicExponent
    • Constructor Detail

      • JCERSAPublicKey

        JCERSAPublicKey​(java.security.spec.RSAPublicKeySpec spec)
      • JCERSAPublicKey

        JCERSAPublicKey​(java.security.interfaces.RSAPublicKey key)
    • Method Detail

      • getModulus

        public java.math.BigInteger getModulus()
        return the modulus.
        Specified by:
        getModulus in interface java.security.interfaces.RSAKey
        Returns:
        the modulus.
      • getPublicExponent

        public java.math.BigInteger getPublicExponent()
        return the public exponent.
        Specified by:
        getPublicExponent in interface java.security.interfaces.RSAPublicKey
        Returns:
        the public exponent.
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object