Package org.forgerock.json.jose.jwk
Class EcJWK.Builder
- java.lang.Object
 - 
- org.forgerock.json.jose.jwk.JWK.Builder<EcJWK.Builder>
 - 
- org.forgerock.json.jose.jwk.EcJWK.Builder
 
 
 
- 
- Enclosing class:
 - EcJWK
 
public static final class EcJWK.Builder extends JWK.Builder<EcJWK.Builder>
EC 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EcJWKbuild()Build the EC JWK.EcJWK.Builderd(String d)Set the unsigned big-endian base64 url encoding of the d value for the elliptical curve private key.EcJWK.BuilderprivateKey(ECPrivateKey privateKey)Set the unsigned big-endian base64 url encoding of the d value for the elliptical curve 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 Detail
- 
privateKey
public EcJWK.Builder privateKey(ECPrivateKey privateKey)
Set the unsigned big-endian base64 url encoding of the d value for the elliptical curve private key.- Parameters:
 privateKey- The private key for the JWK- Returns:
 - the current builder
 
 
- 
d
public EcJWK.Builder d(String d)
Set the unsigned big-endian base64 url encoding of the d value for the elliptical curve private key.- Parameters:
 d- The unsigned big-endian base64 url encoding of the d value for the elliptical curve private key- Returns:
 - the current builder
 
 
- 
build
public EcJWK build()
Build the EC JWK.- Specified by:
 buildin classJWK.Builder<EcJWK.Builder>- Returns:
 - a EC JWK
 
 
 - 
 
 -