Class BCRSAPrivateKey
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPrivateKey
-
- All Implemented Interfaces:
Serializable
,RSAKey
,RSAPrivateKey
,Key
,PrivateKey
,Destroyable
,PKCS12BagAttributeCarrier
- Direct Known Subclasses:
BCRSAPrivateCrtKey
public class BCRSAPrivateKey extends Object implements RSAPrivateKey, PKCS12BagAttributeCarrier
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AlgorithmIdentifier
algorithmIdentifier
protected PKCS12BagAttributeCarrierImpl
attrCarrier
protected BigInteger
modulus
protected BigInteger
privateExponent
protected RSAKeyParameters
rsaPrivateKey
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAlgorithm()
ASN1Encodable
getBagAttribute(ASN1ObjectIdentifier oid)
Enumeration
getBagAttributeKeys()
byte[]
getEncoded()
String
getFormat()
BigInteger
getModulus()
BigInteger
getPrivateExponent()
int
hashCode()
void
setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
-
-
-
Field Detail
-
modulus
protected BigInteger modulus
-
privateExponent
protected BigInteger privateExponent
-
algorithmIdentifier
protected transient AlgorithmIdentifier algorithmIdentifier
-
rsaPrivateKey
protected transient RSAKeyParameters rsaPrivateKey
-
attrCarrier
protected transient PKCS12BagAttributeCarrierImpl attrCarrier
-
-
Method Detail
-
getModulus
public BigInteger getModulus()
- Specified by:
getModulus
in interfaceRSAKey
-
getPrivateExponent
public BigInteger getPrivateExponent()
- Specified by:
getPrivateExponent
in interfaceRSAPrivateKey
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceKey
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
-
setBagAttribute
public void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
- Specified by:
setBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttribute
public ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
- Specified by:
getBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
public Enumeration getBagAttributeKeys()
- Specified by:
getBagAttributeKeys
in interfacePKCS12BagAttributeCarrier
-
-