Package org.forgerock.json.jose.jwk
Class RsaJWK.Builder
- Enclosing class:
- RsaJWK
The RSA JWK builder.
-
Field Summary
Fields inherited from class org.forgerock.json.jose.jwk.JWK.Builder
algorithm, keyId, keyOperations, keyType, use, x509Chain, x509Thumbnail, x509url
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the RSA JWK.crtCoefficient
(String crtCoefficient) Set the RSA First CRT Coefficient value.otherPrimesInfo
(List<RsaJWK.PrimesInfo> otherPrimesInfo) Set the RSA other factors value.Set the RSA First Prime Factor value.primePExponent
(String primePExponent) Set the RSA First Factor CRT Exponent value.Set the RSA Second Prime Factor value.primeQExponent
(String primeQExponent) Set the RSA Second factor CRT Exponent value.privateExponent
(String privateExponent) Set the RSA Private Exponent value.rsaPrivateCrtKey
(RSAPrivateCrtKey privCert) Sets the RSA private certificate key.rsaPrivateKey
(RSAPrivateKey privateKey) Sets the RSA private key.Methods inherited from class org.forgerock.json.jose.jwk.JWK.Builder
algorithm, algorithm, keyId, keyOperations, keyUse, withX509Thumbprint, withX509ThumbprintS256, x509Chain, x509Thumbnail, x509Thumbprint, x509ThumbprintS256, x509Url
-
Method Details
-
rsaPrivateCrtKey
Sets the RSA private certificate key. The following attributes would be deduce from the key: - Private exponent - Prime P - Prime Q - Prime P exponent - Prime Q exponent - First CRT Coefficient.- Parameters:
privCert
- the RSA private certificate- Returns:
- the current builder
-
rsaPrivateKey
Sets the RSA private key. The private exponent will be deduce from it.- Parameters:
privateKey
- the rsa private key- Returns:
- the current builder
-
privateExponent
Set the RSA Private Exponent value.- Parameters:
privateExponent
- the private exponent JWK- Returns:
- the current builder
-
primeP
Set the RSA First Prime Factor value.- Parameters:
primeP
- the first prime factor of the JWK- Returns:
- the current builder
-
primeQ
Set the RSA Second Prime Factor value.- Parameters:
primeQ
- the second prime factor of the JWK- Returns:
- the current builder
-
primePExponent
Set the RSA First Factor CRT Exponent value.- Parameters:
primePExponent
- the first factor exponent of the JWK- Returns:
- the current builder
-
primeQExponent
Set the RSA Second factor CRT Exponent value.- Parameters:
primeQExponent
- the second factor exponent of the JWK- Returns:
- the current builder
-
crtCoefficient
Set the RSA First CRT Coefficient value.- Parameters:
crtCoefficient
- the first CRT Coefficient of the JWK- Returns:
- the current builder
-
otherPrimesInfo
Set the RSA other factors value.- Parameters:
otherPrimesInfo
- the extra factors of the JWK- Returns:
- the current builder
-
build
Build the RSA JWK.- Specified by:
build
in classJWK.Builder<RsaJWK.Builder>
- Returns:
- a RSA JWK
-