Package org.bouncycastle.asn1.pkcs
Class RSAPublicKey
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.pkcs.RSAPublicKey
-
- All Implemented Interfaces:
ASN1Encodable,Encodable
public class RSAPublicKey extends ASN1Object
-
-
Constructor Summary
Constructors Constructor Description RSAPublicKey(BigInteger modulus, BigInteger publicExponent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RSAPublicKeygetInstance(Object obj)static RSAPublicKeygetInstance(ASN1TaggedObject obj, boolean explicit)BigIntegergetModulus()BigIntegergetPublicExponent()ASN1PrimitivetoASN1Primitive()This outputs the key in PKCS1v2 format.-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
-
-
-
Constructor Detail
-
RSAPublicKey
public RSAPublicKey(BigInteger modulus, BigInteger publicExponent)
-
-
Method Detail
-
getInstance
public static RSAPublicKey getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
public static RSAPublicKey getInstance(Object obj)
-
getModulus
public BigInteger getModulus()
-
getPublicExponent
public BigInteger getPublicExponent()
-
toASN1Primitive
public ASN1Primitive toASN1Primitive()
This outputs the key in PKCS1v2 format.RSAPublicKey ::= SEQUENCE { modulus INTEGER, -- n publicExponent INTEGER, -- e }- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
-