Class AsymmetricRSAPublicKey

    • Constructor Detail

      • AsymmetricRSAPublicKey

        public AsymmetricRSAPublicKey​(Algorithm algorithm,
                                      java.math.BigInteger modulus,
                                      java.math.BigInteger publicExponent)
      • AsymmetricRSAPublicKey

        public AsymmetricRSAPublicKey​(Algorithm algorithm,
                                      byte[] publicKeyInfoEncoding)
    • Method Detail

      • getPublicExponent

        public java.math.BigInteger getPublicExponent()
      • getEncoded

        public byte[] getEncoded()
        Description copied from interface: AsymmetricKey
        Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
        Specified by:
        getEncoded in interface AsymmetricKey
        Returns:
        an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
      • equals

        public boolean equals​(java.lang.Object o)
        Description copied from interface: Key
        Return true if o is an equivalent key to this.
        Specified by:
        equals in interface Key
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - object to compare to.
        Returns:
        true if o is the same or equivalent key, false otherwise.
      • hashCode

        public int hashCode()
        Description copied from interface: Key
        Return the hashCode for the key.
        Specified by:
        hashCode in interface Key
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the key's hashCode.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable