public class

RSAPublicKeyStructure

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.x509.RSAPublicKeyStructure

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
RSAPublicKeyStructure(BigInteger modulus, BigInteger publicExponent)
RSAPublicKeyStructure(ASN1Sequence seq)
Public Methods
static RSAPublicKeyStructure getInstance(ASN1TaggedObject obj, boolean explicit)
static RSAPublicKeyStructure getInstance(Object obj)
BigInteger getModulus()
BigInteger getPublicExponent()
DERObject toASN1Object()
This outputs the key in PKCS1v2 format.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public RSAPublicKeyStructure (BigInteger modulus, BigInteger publicExponent)

public RSAPublicKeyStructure (ASN1Sequence seq)

Public Methods

public static RSAPublicKeyStructure getInstance (ASN1TaggedObject obj, boolean explicit)

public static RSAPublicKeyStructure getInstance (Object obj)

public BigInteger getModulus ()

public BigInteger getPublicExponent ()

public DERObject toASN1Object ()

This outputs the key in PKCS1v2 format.

      RSAPublicKey ::= SEQUENCE {
                          modulus INTEGER, -- n
                          publicExponent INTEGER, -- e
                      }