public class BCRSAPrivateKey extends Object implements RSAPrivateKey, PKCS12BagAttributeCarrier
Modifier and Type | Field and Description |
---|---|
protected AlgorithmIdentifier |
algorithmIdentifier |
protected PKCS12BagAttributeCarrierImpl |
attrCarrier |
protected BigInteger |
modulus |
protected BigInteger |
privateExponent |
protected RSAKeyParameters |
rsaPrivateKey |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAlgorithm() |
ASN1Encodable |
getBagAttribute(ASN1ObjectIdentifier oid) |
Enumeration |
getBagAttributeKeys() |
byte[] |
getEncoded() |
String |
getFormat() |
BigInteger |
getModulus() |
BigInteger |
getPrivateExponent() |
int |
hashCode() |
void |
setBagAttribute(ASN1ObjectIdentifier oid,
ASN1Encodable attribute) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, isDestroyed
protected BigInteger modulus
protected BigInteger privateExponent
protected transient AlgorithmIdentifier algorithmIdentifier
protected transient RSAKeyParameters rsaPrivateKey
protected transient PKCS12BagAttributeCarrierImpl attrCarrier
public BigInteger getModulus()
getModulus
in interface RSAKey
public BigInteger getPrivateExponent()
getPrivateExponent
in interface RSAPrivateKey
public String getAlgorithm()
getAlgorithm
in interface Key
public byte[] getEncoded()
getEncoded
in interface Key
public void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute
in interface PKCS12BagAttributeCarrier
public ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
getBagAttribute
in interface PKCS12BagAttributeCarrier
public Enumeration getBagAttributeKeys()
getBagAttributeKeys
in interface PKCS12BagAttributeCarrier
Copyright © 2021 BouncyCastle.org. All rights reserved.