org.bouncycastle.asn1.x509
Class RSAPublicKeyStructure
- DEREncodable
public class RSAPublicKeyStructure
RSAPublicKeyStructure
public RSAPublicKeyStructure(BigInteger modulus,
BigInteger publicExponent)
RSAPublicKeyStructure
public RSAPublicKeyStructure(ASN1Sequence seq)
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
}
- toASN1Object in interface ASN1Encodable