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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AlgorithmIdentifier
protected PKCS12BagAttributeCarrierImpl
protected BigInteger
protected BigInteger
protected RSAKeyParameters
-
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
boolean
int
hashCode()
void
setBagAttribute
(ASN1ObjectIdentifier oid, ASN1Encodable attribute) void
setFriendlyName
(String friendlyName) 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 Details
-
modulus
-
privateExponent
-
algorithmIdentifier
-
rsaPrivateKey
-
attrCarrier
-
-
Method Details
-
getModulus
- Specified by:
getModulus
in interfaceRSAKey
-
getPrivateExponent
- Specified by:
getPrivateExponent
in interfaceRSAPrivateKey
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
equals
-
hashCode
public int hashCode() -
setBagAttribute
- Specified by:
setBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttribute
- Specified by:
getBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
- Specified by:
getBagAttributeKeys
in interfacePKCS12BagAttributeCarrier
-
hasFriendlyName
public boolean hasFriendlyName()- Specified by:
hasFriendlyName
in interfacePKCS12BagAttributeCarrier
-
setFriendlyName
- Specified by:
setFriendlyName
in interfacePKCS12BagAttributeCarrier
-
toString
-