public class OpenSSLRSAPrivateKey extends Object implements RSAPrivateKey, OpenSSLKeyHolder
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fetchedParams |
protected OpenSSLKey |
key |
protected BigInteger |
modulus |
protected BigInteger |
privateExponent |
| Constructor and Description |
|---|
OpenSSLRSAPrivateKey(RSAPrivateKeySpec rsaKeySpec) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAlgorithm() |
byte[] |
getEncoded() |
String |
getFormat() |
BigInteger |
getModulus() |
OpenSSLKey |
getOpenSSLKey() |
BigInteger |
getPrivateExponent() |
int |
hashCode() |
String |
toString() |
protected static OpenSSLKey |
wrapPlatformKey(RSAPrivateKey rsaPrivateKey) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, isDestroyedprotected transient OpenSSLKey key
protected transient boolean fetchedParams
protected BigInteger modulus
protected BigInteger privateExponent
public OpenSSLRSAPrivateKey(RSAPrivateKeySpec rsaKeySpec) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic OpenSSLKey getOpenSSLKey()
getOpenSSLKey in interface OpenSSLKeyHolderprotected static OpenSSLKey wrapPlatformKey(RSAPrivateKey rsaPrivateKey) throws InvalidKeyException
InvalidKeyExceptionpublic final BigInteger getPrivateExponent()
getPrivateExponent in interface RSAPrivateKeypublic final BigInteger getModulus()
getModulus in interface RSAKeypublic final byte[] getEncoded()
getEncoded in interface Keypublic final String getAlgorithm()
getAlgorithm in interface Key