public class RSAPrivateKeyStructure extends ASN1Object
Modifier and Type | Field and Description |
---|---|
private BigInteger |
coefficient
Deprecated.
|
private BigInteger |
exponent1
Deprecated.
|
private BigInteger |
exponent2
Deprecated.
|
private BigInteger |
modulus
Deprecated.
|
private ASN1Sequence |
otherPrimeInfos
Deprecated.
|
private BigInteger |
prime1
Deprecated.
|
private BigInteger |
prime2
Deprecated.
|
private BigInteger |
privateExponent
Deprecated.
|
private BigInteger |
publicExponent
Deprecated.
|
private int |
version
Deprecated.
|
Constructor and Description |
---|
RSAPrivateKeyStructure(ASN1Sequence seq)
Deprecated.
|
RSAPrivateKeyStructure(BigInteger modulus,
BigInteger publicExponent,
BigInteger privateExponent,
BigInteger prime1,
BigInteger prime2,
BigInteger exponent1,
BigInteger exponent2,
BigInteger coefficient)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
getCoefficient()
Deprecated.
|
BigInteger |
getExponent1()
Deprecated.
|
BigInteger |
getExponent2()
Deprecated.
|
static RSAPrivateKeyStructure |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Deprecated.
|
static RSAPrivateKeyStructure |
getInstance(Object obj)
Deprecated.
|
BigInteger |
getModulus()
Deprecated.
|
BigInteger |
getPrime1()
Deprecated.
|
BigInteger |
getPrime2()
Deprecated.
|
BigInteger |
getPrivateExponent()
Deprecated.
|
BigInteger |
getPublicExponent()
Deprecated.
|
int |
getVersion()
Deprecated.
|
ASN1Primitive |
toASN1Primitive()
Deprecated.
This outputs the key in PKCS1v2 format.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private int version
private BigInteger modulus
private BigInteger publicExponent
private BigInteger privateExponent
private BigInteger prime1
private BigInteger prime2
private BigInteger exponent1
private BigInteger exponent2
private BigInteger coefficient
private ASN1Sequence otherPrimeInfos
public RSAPrivateKeyStructure(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient)
public RSAPrivateKeyStructure(ASN1Sequence seq)
public static RSAPrivateKeyStructure getInstance(ASN1TaggedObject obj, boolean explicit)
public static RSAPrivateKeyStructure getInstance(Object obj)
public int getVersion()
public BigInteger getModulus()
public BigInteger getPublicExponent()
public BigInteger getPrivateExponent()
public BigInteger getPrime1()
public BigInteger getPrime2()
public BigInteger getExponent1()
public BigInteger getExponent2()
public BigInteger getCoefficient()
public ASN1Primitive toASN1Primitive()
RSAPrivateKey ::= SEQUENCE { version Version, modulus INTEGER, -- n publicExponent INTEGER, -- e privateExponent INTEGER, -- d prime1 INTEGER, -- p prime2 INTEGER, -- q exponent1 INTEGER, -- d mod (p-1) exponent2 INTEGER, -- d mod (q-1) coefficient INTEGER, -- (inverse of q) mod p otherPrimeInfos OtherPrimeInfos OPTIONAL } Version ::= INTEGER { two-prime(0), multi(1) } (CONSTRAINED BY {-- version must be multi if otherPrimeInfos present --})
This routine is written to output PKCS1 version 2.1, private keys.
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object