Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.21
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.asn1.pkcs
Class RSAPrivateKeyStructure

    java.lang.Object
      |
      +--org.bouncycastle.asn1.pkcs.RSAPrivateKeyStructure

All Implemented Interfaces:
  DEREncodable

public class RSAPrivateKeyStructure
extends java.lang.Object
implements DEREncodable

Constructor Summary
`RSAPrivateKeyStructure(ASN1Sequence seq)`
`RSAPrivateKeyStructure(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)`

Method Summary
`java.math.BigInteger` | `getCoefficient()`
`DERObject` | `getDERObject()` This outputs the key in PKCS1v2 format.
`java.math.BigInteger` | `getExponent1()`
`java.math.BigInteger` | `getExponent2()`
`java.math.BigInteger` | `getModulus()`
`java.math.BigInteger` | `getPrime1()`
`java.math.BigInteger` | `getPrime2()`
`java.math.BigInteger` | `getPrivateExponent()`
`java.math.BigInteger` | `getPublicExponent()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RSAPrivateKeyStructure

    public RSAPrivateKeyStructure(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)

### RSAPrivateKeyStructure

    public RSAPrivateKeyStructure(ASN1Sequence seq)

Method Detail

### getModulus

    public java.math.BigInteger getModulus()

### getPublicExponent

    public java.math.BigInteger getPublicExponent()

### getPrivateExponent

    public java.math.BigInteger getPrivateExponent()

### getPrime1

    public java.math.BigInteger getPrime1()

### getPrime2

    public java.math.BigInteger getPrime2()

### getExponent1

    public java.math.BigInteger getExponent1()

### getExponent2

    public java.math.BigInteger getExponent2()

### getCoefficient

    public java.math.BigInteger getCoefficient()

### getDERObject

    public DERObject getDERObject()

  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
                            }

            Version ::= INTEGER

  This routine is written to output PKCS1 version 0, private keys.

  Specified by:
    `getDERObject` in interface `DEREncodable`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.21
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD