Class RSAPublicKeyStructure

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class RSAPublicKeyStructure
    extends ASN1Object
    Deprecated.
    use org.bouncycastle.asn1.pkcs.RSAPublicKey
    • Constructor Detail

      • RSAPublicKeyStructure

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

        public RSAPublicKeyStructure​(ASN1Sequence seq)
        Deprecated.
    • Method Detail

      • getModulus

        public java.math.BigInteger getModulus()
        Deprecated.
      • getPublicExponent

        public java.math.BigInteger getPublicExponent()
        Deprecated.
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
        Deprecated.
        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.