Package com.google.crypto.tink.jwt
Class JwtRsaSsaPssPrivateKey.Builder
- java.lang.Object
-
- com.google.crypto.tink.jwt.JwtRsaSsaPssPrivateKey.Builder
-
- Enclosing class:
- JwtRsaSsaPssPrivateKey
public static class JwtRsaSsaPssPrivateKey.Builder extends java.lang.ObjectBuilder for JwtRsaSsaPssPrivateKey.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JwtRsaSsaPssPrivateKeybuild()JwtRsaSsaPssPrivateKey.BuildersetCrtCoefficient(SecretBigInteger qInv)Sets the CRT coefficient qInv.JwtRsaSsaPssPrivateKey.BuildersetPrimeExponents(SecretBigInteger dP, SecretBigInteger dQ)Sets the prime exponents dP and dQ.JwtRsaSsaPssPrivateKey.BuildersetPrimes(SecretBigInteger p, SecretBigInteger q)Sets the prime factors p and q.JwtRsaSsaPssPrivateKey.BuildersetPrivateExponent(SecretBigInteger d)Sets the private exponent d.JwtRsaSsaPssPrivateKey.BuildersetPublicKey(JwtRsaSsaPssPublicKey publicKey)Sets the public key, which includes the parameters.
-
-
-
Method Detail
-
setPublicKey
@CanIgnoreReturnValue public JwtRsaSsaPssPrivateKey.Builder setPublicKey(JwtRsaSsaPssPublicKey publicKey)
Sets the public key, which includes the parameters.This is required.
-
setPrimes
@CanIgnoreReturnValue public JwtRsaSsaPssPrivateKey.Builder setPrimes(SecretBigInteger p, SecretBigInteger q)
Sets the prime factors p and q.See https://datatracker.ietf.org/doc/html/rfc7518#section-6.3.2.2.
This is required.
-
setPrivateExponent
@CanIgnoreReturnValue public JwtRsaSsaPssPrivateKey.Builder setPrivateExponent(SecretBigInteger d)
Sets the private exponent d.See https://datatracker.ietf.org/doc/html/rfc7518#section-6.3.2.1.
This is required.
-
setPrimeExponents
@CanIgnoreReturnValue public JwtRsaSsaPssPrivateKey.Builder setPrimeExponents(SecretBigInteger dP, SecretBigInteger dQ)
Sets the prime exponents dP and dQ.See https://datatracker.ietf.org/doc/html/rfc7518#section-6.3.2.4.
This is required.
-
setCrtCoefficient
@CanIgnoreReturnValue public JwtRsaSsaPssPrivateKey.Builder setCrtCoefficient(SecretBigInteger qInv)
Sets the CRT coefficient qInv.See https://datatracker.ietf.org/doc/html/rfc7518#section-6.3.2.6.
This is required.
-
build
public JwtRsaSsaPssPrivateKey build() throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
-