Class BCRSAPrivateKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.rsa.BCRSAPrivateKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, RSAKey, RSAPrivateKey, Key, PrivateKey, Destroyable, BCKey, PKCS12BagAttributeCarrier
- Direct Known Subclasses:
BCRSAPrivateCrtKey
public class BCRSAPrivateKey
extends Object
implements RSAPrivateKey, PKCS12BagAttributeCarrier, BCKey
- 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 interface Destroyable
destroy, isDestroyedMethods inherited from interface RSAPrivateKey
getParams
-
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
-
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
-