Top Fields Constructors Methods
org.bouncycastle.asn1.pkcs

public Class RSAPublicKey

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, java.util.Enumeration, org.bouncycastle.asn1.ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERSequence

Field Summary

Modifier and TypeField and Description
private BigInteger
private BigInteger

Constructor Summary

AccessConstructor and Description
public
RSAPublicKey(BigInteger modulus, BigInteger publicExponent)

private

Method Summary

Modifier and TypeMethod and Description
public static RSAPublicKey
getInstance(ASN1TaggedObject obj, boolean explicit)

public static RSAPublicKey
public BigInteger
public BigInteger
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

This outputs the key in PKCS1v2 format.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

modulusback to summary
private BigInteger modulus
publicExponentback to summary
private BigInteger publicExponent

Constructor Detail

RSAPublicKeyback to summary
public RSAPublicKey(BigInteger modulus, BigInteger publicExponent)
RSAPublicKeyback to summary
private RSAPublicKey(ASN1Sequence seq)

Method Detail

getInstanceback to summary
public static RSAPublicKey getInstance(ASN1TaggedObject obj, boolean explicit)
getInstanceback to summary
public static RSAPublicKey getInstance(Object obj)
getModulusback to summary
public BigInteger getModulus()
getPublicExponentback to summary
public BigInteger getPublicExponent()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

This outputs the key in PKCS1v2 format.

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

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.