public class RSAPublicKey extends ASN1Object
Modifier and Type | Field and Description |
---|---|
private BigInteger |
modulus |
private BigInteger |
publicExponent |
Modifier | Constructor and Description |
---|---|
private |
RSAPublicKey(ASN1Sequence seq) |
|
RSAPublicKey(BigInteger modulus,
BigInteger publicExponent) |
Modifier and Type | Method and Description |
---|---|
static RSAPublicKey |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static RSAPublicKey |
getInstance(Object obj) |
BigInteger |
getModulus() |
BigInteger |
getPublicExponent() |
ASN1Primitive |
toASN1Primitive()
This outputs the key in PKCS1v2 format.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private BigInteger modulus
private BigInteger publicExponent
public RSAPublicKey(BigInteger modulus, BigInteger publicExponent)
private RSAPublicKey(ASN1Sequence seq)
public static RSAPublicKey getInstance(ASN1TaggedObject obj, boolean explicit)
public static RSAPublicKey getInstance(Object obj)
public BigInteger getModulus()
public BigInteger getPublicExponent()
public ASN1Primitive toASN1Primitive()
RSAPublicKey ::= SEQUENCE { modulus INTEGER, -- n publicExponent INTEGER, -- e }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object