org.bouncycastle.jce.provider

Class JCERSAPrivateKey

Implemented Interfaces:
RSAPrivateKey, PKCS12BagAttributeCarrier
Known Direct Subclasses:
JCERSAPrivateCrtKey

public class JCERSAPrivateKey
extends java.lang.Object
implements RSAPrivateKey, PKCS12BagAttributeCarrier

Field Summary

protected BigInteger
modulus
protected BigInteger
privateExponent

Constructor Summary

JCERSAPrivateKey()

Method Summary

boolean
equals(Object o)
String
getAlgorithm()
DEREncodable
getBagAttribute(DERObjectIdentifier oid)
Enumeration
getBagAttributeKeys()
byte[]
getEncoded()
String
getFormat()
BigInteger
getModulus()
BigInteger
getPrivateExponent()
int
hashCode()
void
setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)

Field Details

modulus

protected BigInteger modulus

privateExponent

protected BigInteger privateExponent

Constructor Details

JCERSAPrivateKey

protected JCERSAPrivateKey()

Method Details

equals

public boolean equals(Object o)

getAlgorithm

public String getAlgorithm()

getBagAttribute

public DEREncodable getBagAttribute(DERObjectIdentifier oid)
Specified by:
getBagAttribute in interface PKCS12BagAttributeCarrier

getBagAttributeKeys

public Enumeration getBagAttributeKeys()
Specified by:
getBagAttributeKeys in interface PKCS12BagAttributeCarrier

getEncoded

public byte[] getEncoded()

getFormat

public String getFormat()

getModulus

public BigInteger getModulus()

getPrivateExponent

public BigInteger getPrivateExponent()

hashCode

public int hashCode()

setBagAttribute

public void setBagAttribute(DERObjectIdentifier oid,
                            DEREncodable attribute)
Specified by:
setBagAttribute in interface PKCS12BagAttributeCarrier