Note
RSA keys must be at least 512 bits long
RSAPrivateKeyImpl
, RSAKeyFactory
Modifier and Type | Field and Description |
---|---|
private BigInteger | |
private BigInteger | |
private BigInteger | |
private final transient AlgorithmParameterSpec | |
private BigInteger | |
private BigInteger | |
private BigInteger | |
private BigInteger | |
private BigInteger | |
private static final long | |
private final transient RSAUtil. |
Access | Constructor and Description |
---|---|
private | |
pack-priv | RSAPrivateCrtKeyImpl(RSAUtil.
Construct an RSA key from its components. |
coeff | back to summary |
---|---|
private BigInteger coeff |
d | back to summary |
---|---|
private BigInteger d |
e | back to summary |
---|---|
private BigInteger e |
keyParams | back to summary |
---|---|
private final transient AlgorithmParameterSpec keyParams |
n | back to summary |
---|---|
private BigInteger n |
p | back to summary |
---|---|
private BigInteger p |
pe | back to summary |
---|---|
private BigInteger pe |
q | back to summary |
---|---|
private BigInteger q |
qe | back to summary |
---|---|
private BigInteger qe |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID Hides sun. |
type | back to summary |
---|---|
private final transient RSAUtil. |
RSAPrivateCrtKeyImpl | back to summary |
---|---|
private RSAPrivateCrtKeyImpl(byte[] encoded) throws InvalidKeyException Construct a key from its encoding. Called from newKey above. |
RSAPrivateCrtKeyImpl | back to summary |
---|---|
pack-priv RSAPrivateCrtKeyImpl(RSAUtil. Construct an RSA key from its components. Used by the RSAKeyFactory and the RSAKeyPairGenerator. |
checkComponents | back to summary |
---|---|
pack-priv static boolean checkComponents(RSAPrivateCrtKey key) Validate if all CRT-specific components are available. |
getAlgorithm | back to summary |
---|---|
public String getAlgorithm() Overrides sun. Implements java. Doc from java. Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key. See the key related sections (KeyFactory, KeyGenerator, KeyPairGenerator, and SecretKeyFactory) in the Java Security Standard Algorithm Names Specification for information about standard key algorithm names. |
getCrtCoefficient | back to summary |
---|---|
public BigInteger getCrtCoefficient() Implements java. Doc from java. Returns the crtCoefficient.
|
getModulus | back to summary |
---|---|
public BigInteger getModulus() Implements java. Doc from java. Returns the modulus.
|
getParams | back to summary |
---|---|
public AlgorithmParameterSpec getParams() Overrides default java. Doc from java. Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation.
|
getPrimeExponentP | back to summary |
---|---|
public BigInteger getPrimeExponentP() Implements java. Doc from java. Returns the primeExponentP.
|
getPrimeExponentQ | back to summary |
---|---|
public BigInteger getPrimeExponentQ() Implements java. Doc from java. Returns the primeExponentQ.
|
getPrimeP | back to summary |
---|---|
public BigInteger getPrimeP() Implements java. Doc from java. Returns the primeP.
|
getPrimeQ | back to summary |
---|---|
public BigInteger getPrimeQ() Implements java. Doc from java. Returns the primeQ.
|
getPrivateExponent | back to summary |
---|---|
public BigInteger getPrivateExponent() Implements java. Doc from java. Returns the private exponent.
|
getPublicExponent | back to summary |
---|---|
public BigInteger getPublicExponent() Implements java. Doc from java. Returns the public exponent.
|
newKey | back to summary |
---|---|
public static RSAPrivateKey newKey(RSAUtil. Generate a new RSAPrivate(Crt)Key from the specified type, format and encoding. Returns a CRT key if possible and a non-CRT key otherwise. Also used by SunPKCS11 provider. |
newKey | back to summary |
---|---|
public static RSAPrivateKey newKey(RSAUtil. Generate a new key from the specified type and components. Returns a CRT key if possible and a non-CRT key otherwise. Used by SunPKCS11 provider. |
parseASN1 | back to summary |
---|---|
private static BigInteger[] parseASN1(byte[] raw) throws IOException |
parseKeyBits | back to summary |
---|---|
private void parseKeyBits() throws InvalidKeyException |
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Hides sun. Restores the state of this object from the stream. Deserialization of this object is not supported.
|
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object. |