Package org.bouncycastle.asn1.pkcs
Class RSAPublicKey
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.pkcs.RSAPublicKey
- All Implemented Interfaces:
ASN1Encodable
,Encodable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RSAPublicKey
getInstance
(Object obj) static RSAPublicKey
getInstance
(ASN1TaggedObject obj, boolean explicit) This outputs the key in PKCS1v2 format.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
RSAPublicKey
-
-
Method Details
-
getInstance
-
getInstance
-
getModulus
-
getPublicExponent
-
toASN1Primitive
This outputs the key in PKCS1v2 format.RSAPublicKey ::= SEQUENCE { modulus INTEGER, -- n publicExponent INTEGER, -- e }
- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-