public class RSAPublicKey extends ASN1Object
Constructor and Description |
---|
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.
|
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public RSAPublicKey(BigInteger modulus, BigInteger publicExponent)
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
Copyright © 2021 BouncyCastle.org. All rights reserved.