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 AlgorithmIdentifierprotected PKCS12BagAttributeCarrierImplprotected BigIntegerprotected BigIntegerprotected RSAKeyParameters -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]booleaninthashCode()voidsetBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute) voidsetFriendlyName(String friendlyName) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Field Details
-
modulus
-
privateExponent
-
algorithmIdentifier
-
rsaPrivateKey
-
attrCarrier
-
-
Method Details
-
getModulus
- Specified by:
getModulusin interfaceRSAKey
-
getPrivateExponent
- Specified by:
getPrivateExponentin interfaceRSAPrivateKey
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
equals
-
hashCode
public int hashCode() -
setBagAttribute
- Specified by:
setBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttribute
- Specified by:
getBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
- Specified by:
getBagAttributeKeysin interfacePKCS12BagAttributeCarrier
-
hasFriendlyName
public boolean hasFriendlyName()- Specified by:
hasFriendlyNamein interfacePKCS12BagAttributeCarrier
-
setFriendlyName
- Specified by:
setFriendlyNamein interfacePKCS12BagAttributeCarrier
-
toString
-