Class RSAPublicKeyStructure

    • Field Detail

      • modulus

        private java.math.BigInteger modulus
      • publicExponent

        private java.math.BigInteger publicExponent
    • Constructor Detail

      • RSAPublicKeyStructure

        public RSAPublicKeyStructure​(java.math.BigInteger modulus,
                                     java.math.BigInteger publicExponent)
      • RSAPublicKeyStructure

        public RSAPublicKeyStructure​(ASN1Sequence seq)
    • Method Detail

      • getModulus

        public java.math.BigInteger getModulus()
      • getPublicExponent

        public java.math.BigInteger getPublicExponent()
      • toASN1Object

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

        Specified by:
        toASN1Object in class ASN1Encodable