public static class RsaSsaPkcs1PrivateKey.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
RsaSsaPkcs1PrivateKey |
build() |
RsaSsaPkcs1PrivateKey.Builder |
setCrtCoefficient(SecretBigInteger qInv)
Sets the CRT coefficient qInv.
|
RsaSsaPkcs1PrivateKey.Builder |
setPrimeExponents(SecretBigInteger dP,
SecretBigInteger dQ)
Sets the prime exponents dP and dQ.
|
RsaSsaPkcs1PrivateKey.Builder |
setPrimes(SecretBigInteger p,
SecretBigInteger q)
Sets the prime factors p and q.
|
RsaSsaPkcs1PrivateKey.Builder |
setPrivateExponent(SecretBigInteger d)
Sets the private exponent d.
|
RsaSsaPkcs1PrivateKey.Builder |
setPublicKey(RsaSsaPkcs1PublicKey publicKey)
Sets the public key, which includes the parameters.
|
@CanIgnoreReturnValue public RsaSsaPkcs1PrivateKey.Builder setPublicKey(RsaSsaPkcs1PublicKey publicKey)
This is required.
@CanIgnoreReturnValue public RsaSsaPkcs1PrivateKey.Builder setPrimes(SecretBigInteger p, SecretBigInteger q)
This is required.
@CanIgnoreReturnValue public RsaSsaPkcs1PrivateKey.Builder setPrivateExponent(SecretBigInteger d)
This is required.
@CanIgnoreReturnValue public RsaSsaPkcs1PrivateKey.Builder setPrimeExponents(SecretBigInteger dP, SecretBigInteger dQ)
See https://www.rfc-editor.org/rfc/rfc8017#section-3.2.
This is required.
@CanIgnoreReturnValue public RsaSsaPkcs1PrivateKey.Builder setCrtCoefficient(SecretBigInteger qInv)
See https://www.rfc-editor.org/rfc/rfc8017#section-3.2.
This is required.
public RsaSsaPkcs1PrivateKey build() throws GeneralSecurityException
GeneralSecurityException