java.io.Serializable
, java.security.interfaces.RSAKey
, java.security.interfaces.RSAPrivateKey
, java.security.Key
, java.security.PrivateKey
, javax.security.auth.Destroyable
, PKCS12BagAttributeCarrier
JCERSAPrivateCrtKey
public class JCERSAPrivateKey extends java.lang.Object implements java.security.interfaces.RSAPrivateKey, PKCS12BagAttributeCarrier
Modifier and Type | Field | Description |
---|---|---|
protected java.math.BigInteger |
modulus |
|
protected java.math.BigInteger |
privateExponent |
Modifier | Constructor | Description |
---|---|---|
protected |
JCERSAPrivateKey() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getAlgorithm() |
|
ASN1Encodable |
getBagAttribute(ASN1ObjectIdentifier oid) |
|
java.util.Enumeration |
getBagAttributeKeys() |
|
byte[] |
getEncoded() |
|
java.lang.String |
getFormat() |
|
java.math.BigInteger |
getModulus() |
|
java.math.BigInteger |
getPrivateExponent() |
|
int |
hashCode() |
|
void |
setBagAttribute(ASN1ObjectIdentifier oid,
ASN1Encodable attribute) |
protected java.math.BigInteger modulus
protected java.math.BigInteger privateExponent
public java.math.BigInteger getModulus()
getModulus
in interface java.security.interfaces.RSAKey
public java.math.BigInteger getPrivateExponent()
getPrivateExponent
in interface java.security.interfaces.RSAPrivateKey
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute
in interface PKCS12BagAttributeCarrier
public ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
getBagAttribute
in interface PKCS12BagAttributeCarrier
public java.util.Enumeration getBagAttributeKeys()
getBagAttributeKeys
in interface PKCS12BagAttributeCarrier