Top Fields Constructors Methods
org.bouncycastle.asn1.x509

public Class RSAPublicKeyStructure

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

Deprecated

use org.bouncycastle.asn1.pkcs.RSAPublicKey

Field Summary

Modifier and TypeField and Description
private BigInteger
private BigInteger

Constructor Summary

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

public

Method Summary

Modifier and TypeMethod and Description
public static RSAPublicKeyStructure
getInstance(ASN1TaggedObject obj, boolean explicit)
References Deprecated RSAPublicKeyStructure is deprecated or references (maybe indirectly) at least one deprecated element.

public static RSAPublicKeyStructure
getInstance(Object obj)
References Deprecated RSAPublicKeyStructure is deprecated or references (maybe indirectly) at least one deprecated element.

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

RSAPublicKeyStructureback to summary
public RSAPublicKeyStructure(BigInteger modulus, BigInteger publicExponent)
RSAPublicKeyStructureback to summary
public RSAPublicKeyStructure(ASN1Sequence seq)

Method Detail

getInstanceback to summary
public static RSAPublicKeyStructure getInstance(ASN1TaggedObject obj, boolean explicit)

References Deprecated

RSAPublicKeyStructure is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getInstanceback to summary
public static RSAPublicKeyStructure getInstance(Object obj)

References Deprecated

RSAPublicKeyStructure is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

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.