Package org.bouncycastle.asn1.pkcs
Class RSAPrivateKeyStructure
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.pkcs.RSAPrivateKeyStructure
- All Implemented Interfaces:
ASN1Encodable
,Encodable
Deprecated.
use RSAPrivateKey
-
Constructor Summary
ConstructorsConstructorDescriptionRSAPrivateKeyStructure
(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient) Deprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.static RSAPrivateKeyStructure
getInstance
(Object obj) Deprecated.static RSAPrivateKeyStructure
getInstance
(ASN1TaggedObject obj, boolean explicit) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.int
Deprecated.Deprecated.This outputs the key in PKCS1v2 format.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
RSAPrivateKeyStructure
public RSAPrivateKeyStructure(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient) Deprecated. -
RSAPrivateKeyStructure
Deprecated.
-
-
Method Details
-
getInstance
Deprecated. -
getInstance
Deprecated. -
getVersion
public int getVersion()Deprecated. -
getModulus
Deprecated. -
getPublicExponent
Deprecated. -
getPrivateExponent
Deprecated. -
getPrime1
Deprecated. -
getPrime2
Deprecated. -
getExponent1
Deprecated. -
getExponent2
Deprecated. -
getCoefficient
Deprecated. -
toASN1Primitive
Deprecated.This outputs the key in PKCS1v2 format.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.
- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-