Class RSAPublicKey

    • Constructor Detail

      • RSAPublicKey

        public RSAPublicKey​(java.math.BigInteger modulus,
                            java.math.BigInteger publicExponent)
    • Method Detail

      • getInstance

        public static RSAPublicKey getInstance​(java.lang.Object obj)
      • getModulus

        public java.math.BigInteger getModulus()
      • getPublicExponent

        public java.math.BigInteger getPublicExponent()
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
        This outputs the key in PKCS1v2 format.
              RSAPublicKey ::= SEQUENCE {
                                  modulus INTEGER, -- n
                                  publicExponent INTEGER, -- e
                              }
         

        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a primitive representation of this object.