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