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.
  • Method Details

    • 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:
      build in class JWK.Builder<EcJWK.Builder>
      Returns:
      a EC JWK