Package org.bouncycastle.jce.provider
Class JCERSAPrivateKey
- java.lang.Object
-
- org.bouncycastle.jce.provider.JCERSAPrivateKey
-
- 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:
JCERSAPrivateCrtKey
public class JCERSAPrivateKey extends java.lang.Object implements java.security.interfaces.RSAPrivateKey, PKCS12BagAttributeCarrier
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.math.BigIntegermodulusprotected java.math.BigIntegerprivateExponent
-
Constructor Summary
Constructors Modifier Constructor Description protectedJCERSAPrivateKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAlgorithm()ASN1EncodablegetBagAttribute(ASN1ObjectIdentifier oid)java.util.EnumerationgetBagAttributeKeys()byte[]getEncoded()java.lang.StringgetFormat()java.math.BigIntegergetModulus()java.math.BigIntegergetPrivateExponent()inthashCode()voidsetBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
-
-
-
Method Detail
-
getModulus
public java.math.BigInteger getModulus()
- Specified by:
getModulusin interfacejava.security.interfaces.RSAKey
-
getPrivateExponent
public java.math.BigInteger getPrivateExponent()
- Specified by:
getPrivateExponentin interfacejava.security.interfaces.RSAPrivateKey
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setBagAttribute
public void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
- Specified by:
setBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttribute
public ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
- Specified by:
getBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
public java.util.Enumeration getBagAttributeKeys()
- Specified by:
getBagAttributeKeysin interfacePKCS12BagAttributeCarrier
-
-