Class JsonWebKeyPair.KeyPairBuilder

java.lang.Object
de.christofreichardt.json.webkey.JsonWebKey.Builder<JsonWebKeyPair.KeyPairBuilder>
de.christofreichardt.json.webkey.JsonWebKeyPair.KeyPairBuilder
Enclosing class:
JsonWebKeyPair

public static class JsonWebKeyPair.KeyPairBuilder extends JsonWebKey.Builder<JsonWebKeyPair.KeyPairBuilder>
A JsonWebKey.Builder for building JsonWebKeyPairs by provided KeyPairs.
Author:
Christof Reichardt
  • Constructor Details

    • KeyPairBuilder

      public KeyPairBuilder(KeyPair keyPair)
      Creates the JsonWebKeyPair.KeyPairBuilder preconfigured with the given KeyPair.
      Parameters:
      keyPair - the requested KeyPair
  • Method Details

    • build

      public JsonWebKeyPair build()
      Builds the JsonWebKeyPair with the configured parameters.
      Returns:
      the appropriately configured JsonWebKeyPair instance