com.mindbright.security.pkcs1
public class RSAPrivateKey extends ASN1Sequence
RSAPrivateKey ::= SEQUENCE { version Version, modulus INTEGER, -- (Usually large) n publicExponent INTEGER, -- (Usually small) e privateExponent INTEGER, -- (Usually large) d prime1 INTEGER, -- (Usually large) p prime2 INTEGER, -- (Usually large) q exponent1 INTEGER, -- (Usually large) d mod (p-1) exponent2 INTEGER, -- (Usually large) d mod (q-1) coefficient INTEGER, -- (Usually large) (inverse of q) mod p otherPrimeInfos OtherPrimeInfos OPTIONAL } Version ::= INTEGER { two-prime(0), multi(1) } (CONSTRAINED BY {-- version must be multi if otherPrimeInfos present --}) OtherPrimeInfos ::= SEQUENCE SIZE(1..MAX) OF OtherPrimeInfo OtherPrimeInfo ::= SEQUENCE { prime INTEGER, -- ri exponent INTEGER, -- di coefficient INTEGER -- ti }
Modifier and Type | Field and Description |
---|---|
ASN1Integer |
coefficient |
ASN1Integer |
exponent1 |
ASN1Integer |
exponent2 |
ASN1Integer |
modulus |
ASN1Integer |
prime1 |
ASN1Integer |
prime2 |
ASN1Integer |
privateExponent |
ASN1Integer |
publicExponent |
ASN1Integer |
version |
components, count, ofType
isSet, tag
Constructor and Description |
---|
RSAPrivateKey() |
RSAPrivateKey(int version,
java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger prime1,
java.math.BigInteger prime2,
java.math.BigInteger coefficient) |
RSAPrivateKey(int version,
java.math.BigInteger modulus,
java.math.BigInteger publicExponent,
java.math.BigInteger privateExponent,
java.math.BigInteger prime1,
java.math.BigInteger prime2,
java.math.BigInteger exponent1,
java.math.BigInteger exponent2,
java.math.BigInteger coefficient) |
addComponent, addComponent, addOptional, addOptional, addOptional, decodeValue, encodeValue, equals, getComponent, getCount, getDecodeComponent, getDefault, getDistinctComponent, hashCode, isOptional, ofType
decodeValue, getTag, getType, isSet, setValue, toString
public ASN1Integer version
public ASN1Integer modulus
public ASN1Integer publicExponent
public ASN1Integer privateExponent
public ASN1Integer prime1
public ASN1Integer prime2
public ASN1Integer exponent1
public ASN1Integer exponent2
public ASN1Integer coefficient
public RSAPrivateKey()
public RSAPrivateKey(int version, java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger prime1, java.math.BigInteger prime2, java.math.BigInteger coefficient)
public RSAPrivateKey(int version, java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger prime1, java.math.BigInteger prime2, java.math.BigInteger exponent1, java.math.BigInteger exponent2, java.math.BigInteger coefficient)