Package org.bouncycastle.jce.provider
Class JCERSAPrivateKey
java.lang.Object
org.bouncycastle.jce.provider.JCERSAPrivateKey
- All Implemented Interfaces:
Serializable
,RSAKey
,RSAPrivateKey
,Key
,PrivateKey
,Destroyable
,PKCS12BagAttributeCarrier
- Direct Known Subclasses:
JCERSAPrivateCrtKey
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
boolean
int
hashCode()
void
setBagAttribute
(ASN1ObjectIdentifier oid, ASN1Encodable attribute) void
setFriendlyName
(String friendlyName) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Field Details
-
modulus
-
privateExponent
-
-
Constructor Details
-
JCERSAPrivateKey
protected JCERSAPrivateKey()
-
-
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
-