Top Description Fields Constructors Methods
org.bouncycastle.asn1.eac

public Class RSAPublicKey

extends PublicKeyDataObject
Class Inheritance
Imports
java.math.BigInteger, java.util.Enumeration, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, .DERSequence

an Iso7816RSAPublicKeyStructure structure.
 Certificate Holder Authorization ::= SEQUENCE {
     // modulus should be at least 1024bit and a multiple of 512.
     DERTaggedObject        modulus,
     // access rights    exponent
     DERTaggedObject    accessRights,
 }

Field Summary

Modifier and TypeField and Description
private BigInteger
private static int
private BigInteger
private static int
private ASN1ObjectIdentifier
private int

Constructor Summary

AccessConstructor and Description
pack-priv
public

Method Summary

Modifier and TypeMethod and Description
public BigInteger
public BigInteger
public ASN1ObjectIdentifier
private void
private void
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.eac.PublicKeyDataObject:
getInstance

Field Detail

exponentback to summary
private BigInteger exponent
exponentValidback to summary
private static int exponentValid
modulusback to summary
private BigInteger modulus
modulusValidback to summary
private static int modulusValid
usageback to summary
private ASN1ObjectIdentifier usage
validback to summary
private int valid

Constructor Detail

RSAPublicKeyback to summary
pack-priv RSAPublicKey(ASN1Sequence seq)
RSAPublicKeyback to summary
public RSAPublicKey(ASN1ObjectIdentifier usage, BigInteger modulus, BigInteger exponent)

Method Detail

getModulusback to summary
public BigInteger getModulus()
getPublicExponentback to summary
public BigInteger getPublicExponent()
getUsageback to summary
public ASN1ObjectIdentifier getUsage()

Implements abstract org.bouncycastle.asn1.eac.PublicKeyDataObject.getUsage.

setExponentback to summary
private void setExponent(UnsignedInteger exponent)
setModulusback to summary
private void setModulus(UnsignedInteger modulus)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.