Interface OKPJWKBuilder<A extends PublicKey,B extends PrivateKey,C extends OKPJWK<A,B>,D extends OKPJWKBuilder<A,B,C,D>>

Type Parameters:
A - the public key type
B - the private key type
C - the Octet Key Pair JWK type
D - the Octet Key Pair JWK builder type
All Superinterfaces:
JWKBuilder<C,D>, X509JWKBuilder<A,B,C,D>
All Known Subinterfaces:
EdECJWKBuilder<A,B>, XECJWKBuilder<A,B>

public interface OKPJWKBuilder<A extends PublicKey,B extends PrivateKey,C extends OKPJWK<A,B>,D extends OKPJWKBuilder<A,B,C,D>> extends X509JWKBuilder<A,B,C,D>

Octet Key Pair JSON Web Key builder.

Since:
1.5
Author:
Jeremy Kuhn
  • Method Details

    • curve

      D curve(String crv)

      Specifies the Elliptic curve JWA name.

      Parameters:
      crv - the JWA Elliptic curve name
      Returns:
      this builder
    • publicKey

      D publicKey(String x)

      Specifies the public key encoded as Base64URL.

      Parameters:
      x - the Base64URL encoded public key with no padding
      Returns:
      this builder
    • privateKey

      D privateKey(String d)

      Specifies the private key encoded as Base64URL.

      Parameters:
      d - the Base64URL encoded private key with no padding
      Returns:
      this builder