Class JsonWebSecretKey.SecretKeyBuilder
java.lang.Object
de.christofreichardt.json.webkey.JsonWebKey.Builder<JsonWebSecretKey.SecretKeyBuilder>
de.christofreichardt.json.webkey.JsonWebSecretKey.SecretKeyBuilder
- Enclosing class:
JsonWebSecretKey
public static class JsonWebSecretKey.SecretKeyBuilder
extends JsonWebKey.Builder<JsonWebSecretKey.SecretKeyBuilder>
- Author:
- Christof Reichardt
-
Constructor Summary
ConstructorsConstructorDescriptionSecretKeyBuilder(SecretKey secretKey) Creates theJsonWebSecretKey.SecretKeyBuilderpreconfigured with the givenSecretKey. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theJsonWebSecretKeywith the configuredSecretKey.Methods inherited from class JsonWebKey.Builder
withKid
-
Constructor Details
-
SecretKeyBuilder
Creates theJsonWebSecretKey.SecretKeyBuilderpreconfigured with the givenSecretKey.- Parameters:
secretKey- the to be usedalgorithm- Throws:
IllegalArgumentException- if the requested algorithm is not supported
-
-
Method Details
-
build
Builds theJsonWebSecretKeywith the configuredSecretKey.- Returns:
- the appropriately configured
JsonWebSecretKeyinstance
-