org.bouncycastle.asn1.x509

Class RSAPublicKeyStructure

public class RSAPublicKeyStructure extends ASN1Encodable

Constructor Summary
RSAPublicKeyStructure(BigInteger modulus, BigInteger publicExponent)
RSAPublicKeyStructure(ASN1Sequence seq)
Method Summary
static RSAPublicKeyStructuregetInstance(ASN1TaggedObject obj, boolean explicit)
static RSAPublicKeyStructuregetInstance(Object obj)
BigIntegergetModulus()
BigIntegergetPublicExponent()
DERObjecttoASN1Object()
This outputs the key in PKCS1v2 format.

Constructor Detail

RSAPublicKeyStructure

public RSAPublicKeyStructure(BigInteger modulus, BigInteger publicExponent)

RSAPublicKeyStructure

public RSAPublicKeyStructure(ASN1Sequence seq)

Method Detail

getInstance

public static RSAPublicKeyStructure getInstance(ASN1TaggedObject obj, boolean explicit)

getInstance

public static RSAPublicKeyStructure getInstance(Object obj)

getModulus

public BigInteger getModulus()

getPublicExponent

public BigInteger getPublicExponent()

toASN1Object

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