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, parseKey
public 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.InvalidKeyException
public RSAPrivateCrtKey(byte[] encoded) throws java.security.InvalidKeyException
java.security.InvalidKeyException
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.math.BigInteger getPublicExponent()
getPublicExponent
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getPrimeP()
getPrimeP
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getPrimeQ()
getPrimeQ
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getPrimeExponentP()
getPrimeExponentP
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getPrimeExponentQ()
getPrimeExponentQ
in interface java.security.interfaces.RSAPrivateCrtKey
public java.math.BigInteger getCrtCoefficient()
getCrtCoefficient
in interface java.security.interfaces.RSAPrivateCrtKey
public java.lang.String toString()
toString
in class com.ibm.security.pkcs8.PrivateKeyInfo
public void zeroize()
© Portions Copyright 2003, 2012 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2012, Oracle and/or its affiliates. All rights reserved.