org.bouncycastle.jce.provider
public class JCERSAPrivateKey extends java.lang.Object implements java.security.interfaces.RSAPrivateKey, PKCS12BagAttributeCarrier
| Modifier and Type | Field and Description |
|---|---|
protected java.math.BigInteger |
modulus |
protected java.math.BigInteger |
privateExponent |
| Modifier | Constructor and Description |
|---|---|
protected |
JCERSAPrivateKey() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
DEREncodable |
getBagAttribute(DERObjectIdentifier oid) |
java.util.Enumeration |
getBagAttributeKeys() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
java.math.BigInteger |
getModulus() |
java.math.BigInteger |
getPrivateExponent() |
int |
hashCode() |
void |
setBagAttribute(DERObjectIdentifier oid,
DEREncodable attribute) |
protected java.math.BigInteger modulus
protected java.math.BigInteger privateExponent
public java.math.BigInteger getModulus()
getModulus in interface java.security.interfaces.RSAKeypublic java.math.BigInteger getPrivateExponent()
getPrivateExponent in interface java.security.interfaces.RSAPrivateKeypublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
setBagAttribute in interface PKCS12BagAttributeCarrierpublic DEREncodable getBagAttribute(DERObjectIdentifier oid)
getBagAttribute in interface PKCS12BagAttributeCarrierpublic java.util.Enumeration getBagAttributeKeys()
getBagAttributeKeys in interface PKCS12BagAttributeCarrier