Class BCRSAPrivateKey
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPrivateKey
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.interfaces.RSAKey
,java.security.interfaces.RSAPrivateKey
,java.security.Key
,java.security.PrivateKey
,javax.security.auth.Destroyable
,PKCS12BagAttributeCarrier
- Direct Known Subclasses:
BCRSAPrivateCrtKey
public class BCRSAPrivateKey extends java.lang.Object implements java.security.interfaces.RSAPrivateKey, PKCS12BagAttributeCarrier
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AlgorithmIdentifier
algorithmIdentifier
protected PKCS12BagAttributeCarrierImpl
attrCarrier
protected java.math.BigInteger
modulus
protected java.math.BigInteger
privateExponent
protected RSAKeyParameters
rsaPrivateKey
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAlgorithm()
ASN1Encodable
getBagAttribute(ASN1ObjectIdentifier oid)
java.util.Enumeration
getBagAttributeKeys()
byte[]
getEncoded()
java.lang.String
getFormat()
java.math.BigInteger
getModulus()
java.math.BigInteger
getPrivateExponent()
int
hashCode()
void
setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
java.lang.String
toString()
-
-
-
Field Detail
-
modulus
protected java.math.BigInteger modulus
-
privateExponent
protected java.math.BigInteger privateExponent
-
algorithmIdentifier
protected transient AlgorithmIdentifier algorithmIdentifier
-
rsaPrivateKey
protected transient RSAKeyParameters rsaPrivateKey
-
attrCarrier
protected transient PKCS12BagAttributeCarrierImpl attrCarrier
-
-
Method Detail
-
getModulus
public java.math.BigInteger getModulus()
- Specified by:
getModulus
in interfacejava.security.interfaces.RSAKey
-
getPrivateExponent
public java.math.BigInteger getPrivateExponent()
- Specified by:
getPrivateExponent
in interfacejava.security.interfaces.RSAPrivateKey
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfacejava.security.Key
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
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 java.util.Enumeration getBagAttributeKeys()
- Specified by:
getBagAttributeKeys
in interfacePKCS12BagAttributeCarrier
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-