Package org.gudy.bouncycastle.asn1.x509
Class RSAPublicKeyStructure
- java.lang.Object
-
- org.gudy.bouncycastle.asn1.ASN1Encodable
-
- org.gudy.bouncycastle.asn1.x509.RSAPublicKeyStructure
-
- All Implemented Interfaces:
DEREncodable
public class RSAPublicKeyStructure extends ASN1Encodable
-
-
Field Summary
Fields Modifier and Type Field Description private java.math.BigInteger
modulus
private java.math.BigInteger
publicExponent
-
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
-
-
Constructor Summary
Constructors Constructor Description RSAPublicKeyStructure(java.math.BigInteger modulus, java.math.BigInteger publicExponent)
RSAPublicKeyStructure(ASN1Sequence seq)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RSAPublicKeyStructure
getInstance(java.lang.Object obj)
static RSAPublicKeyStructure
getInstance(ASN1TaggedObject obj, boolean explicit)
java.math.BigInteger
getModulus()
java.math.BigInteger
getPublicExponent()
DERObject
toASN1Object()
This outputs the key in PKCS1v2 format.-
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
-
-
-
-
Constructor Detail
-
RSAPublicKeyStructure
public RSAPublicKeyStructure(java.math.BigInteger modulus, java.math.BigInteger publicExponent)
-
RSAPublicKeyStructure
public RSAPublicKeyStructure(ASN1Sequence seq)
-
-
Method Detail
-
getInstance
public static RSAPublicKeyStructure getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
public static RSAPublicKeyStructure getInstance(java.lang.Object obj)
-
getModulus
public java.math.BigInteger getModulus()
-
getPublicExponent
public java.math.BigInteger getPublicExponent()
-
toASN1Object
public DERObject toASN1Object()
This outputs the key in PKCS1v2 format.RSAPublicKey ::= SEQUENCE { modulus INTEGER, -- n publicExponent INTEGER, -- e }
- Specified by:
toASN1Object
in classASN1Encodable
-
-