@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class RSAPrivateKey extends DecodedPrivateKey
RSAPrivateKey ::= SEQUENCE {
version Version,
modulus INTEGER, -- n
publicExponent INTEGER, -- e
privateExponent INTEGER, -- d
prime1 INTEGER, -- p
prime2 INTEGER, -- q
exponent1 INTEGER, -- d mod (p-1)
exponent2 INTEGER, -- d mod (q-1)
coefficient INTEGER, -- (inverse of q) mod p
otherPrimeInfos OtherPrimeInfos OPTIONAL
}
OtherPrimeInfos ::= SEQUENCE SIZE(1..MAX) OF OtherPrimeInfo
OtherPrimeInfo ::= SEQUENCE {
prime INTEGER, -- ri
exponent INTEGER, -- di
coefficient INTEGER -- ti
}
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
getCoefficient()
Retrieves the coefficient for the RSA private key.
|
java.math.BigInteger |
getExponent1()
Retrieves the exponent1 value for the RSA private key.
|
java.math.BigInteger |
getExponent2()
Retrieves the exponent2 value for the RSA private key.
|
java.math.BigInteger |
getModulus()
Retrieves the modulus (n) for the RSA private key.
|
java.util.List<java.math.BigInteger[]> |
getOtherPrimeInfos()
Retrieves a list of information about other primes used by the private key.
|
java.math.BigInteger |
getPrime1()
Retrieves the prime1 (p) value for the RSA private key.
|
java.math.BigInteger |
getPrime2()
Retrieves the prime2 (q) value for the RSA private key.
|
java.math.BigInteger |
getPrivateExponent()
Retrieves the private exponent (d) for the RSA private key.
|
java.math.BigInteger |
getPublicExponent()
Retrieves the public exponent (e) for the RSA public key.
|
RSAPrivateKeyVersion |
getVersion()
Retrieves the version for the RSA private key.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this decoded private key to the provided
buffer.
|
toString@NotNull public RSAPrivateKeyVersion getVersion()
@NotNull public java.math.BigInteger getModulus()
@NotNull public java.math.BigInteger getPublicExponent()
@NotNull public java.math.BigInteger getPrivateExponent()
@NotNull public java.math.BigInteger getPrime1()
@NotNull public java.math.BigInteger getPrime2()
@NotNull public java.math.BigInteger getExponent1()
@NotNull public java.math.BigInteger getExponent2()
@NotNull public java.math.BigInteger getCoefficient()
@NotNull public java.util.List<java.math.BigInteger[]> getOtherPrimeInfos()
BigInteger values, which represent a prime, an exponent, and a
coefficient, respectively.public void toString(@NotNull java.lang.StringBuilder buffer)
toString in class DecodedPrivateKeybuffer - The buffer to which the information should be appended.