public final class RSAPrivateCrtKey
extends com.ibm.security.pkcs8.PrivateKeyInfo
implements java.security.interfaces.RSAPrivateCrtKey, java.io.Serializable
| Constructor and Description |
|---|
RSAPrivateCrtKey(java.math.BigInteger m,
java.math.BigInteger privEx,
java.math.BigInteger pubEx,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger ex1,
java.math.BigInteger ex2,
java.math.BigInteger co)
This constructor computes missing key values and formats key values.
|
RSAPrivateCrtKey(byte[] encoded)
Make a RSA private key from its DER encoding (PKCS #8).
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getCrtCoefficient()
Returns the crtCoefficient.
|
java.math.BigInteger |
getModulus()
Return the modulus.
|
java.math.BigInteger |
getPrimeExponentP()
Returns the primeExponentP.
|
java.math.BigInteger |
getPrimeExponentQ()
Returns the primeExponentQ.
|
java.math.BigInteger |
getPrimeP()
Returns the primeP.
|
java.math.BigInteger |
getPrimeQ()
Returns the primeQ.
|
java.math.BigInteger |
getPrivateExponent()
Return the private exponent.
|
java.math.BigInteger |
getPublicExponent()
Returns the public exponent.
|
java.lang.String |
toString() |
void |
zeroize()
This function zeroizes the key so that it isn't in memory
|
addAttribute, addAttributes, clone, encode, equals, getAlgorithm, getAlgorithmId, getAttribute, getAttributes, getEncoded, getFormat, getKeyBytes, hasAttribute, hasAttributes, hashCode, parseKey, parseKeypublic RSAPrivateCrtKey(java.math.BigInteger m,
java.math.BigInteger privEx,
java.math.BigInteger pubEx,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger ex1,
java.math.BigInteger ex2,
java.math.BigInteger co)
throws java.security.InvalidKeyException
key: - java.security.InvalidKeyExceptionpublic RSAPrivateCrtKey(byte[] encoded)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic java.math.BigInteger getModulus()
getModulus in interface java.security.interfaces.RSAKeypublic java.math.BigInteger getPrivateExponent()
getPrivateExponent in interface java.security.interfaces.RSAPrivateKeypublic java.math.BigInteger getPublicExponent()
getPublicExponent in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getPrimeP()
getPrimeP in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getPrimeQ()
getPrimeQ in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getPrimeExponentP()
getPrimeExponentP in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getPrimeExponentQ()
getPrimeExponentQ in interface java.security.interfaces.RSAPrivateCrtKeypublic java.math.BigInteger getCrtCoefficient()
getCrtCoefficient in interface java.security.interfaces.RSAPrivateCrtKeypublic java.lang.String toString()
toString in class com.ibm.security.pkcs8.PrivateKeyInfopublic void zeroize()
© Portions Copyright 2003, 2012 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2012, Oracle and/or its affiliates. All rights reserved.