public class RSAPublicKeyStructure extends ASN1Encodable
| Modifier and Type | Field and Description |
|---|---|
private java.math.BigInteger |
modulus |
private java.math.BigInteger |
publicExponent |
BER, DER| Constructor and Description |
|---|
RSAPublicKeyStructure(ASN1Sequence seq) |
RSAPublicKeyStructure(java.math.BigInteger modulus,
java.math.BigInteger publicExponent) |
| Modifier and Type | Method and Description |
|---|---|
static RSAPublicKeyStructure |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static RSAPublicKeyStructure |
getInstance(java.lang.Object obj) |
java.math.BigInteger |
getModulus() |
java.math.BigInteger |
getPublicExponent() |
DERObject |
toASN1Object()
This outputs the key in PKCS1v2 format.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCodeprivate java.math.BigInteger modulus
private java.math.BigInteger publicExponent
public RSAPublicKeyStructure(java.math.BigInteger modulus,
java.math.BigInteger publicExponent)
public RSAPublicKeyStructure(ASN1Sequence seq)
public static RSAPublicKeyStructure getInstance(ASN1TaggedObject obj, boolean explicit)
public static RSAPublicKeyStructure getInstance(java.lang.Object obj)
public java.math.BigInteger getModulus()
public java.math.BigInteger getPublicExponent()
public DERObject toASN1Object()
RSAPublicKey ::= SEQUENCE {
modulus INTEGER, -- n
publicExponent INTEGER, -- e
}
toASN1Object in class ASN1EncodableCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.