Class JsonWebKeyPair.Builder
java.lang.Object
de.christofreichardt.json.webkey.JsonWebKey.Builder<JsonWebKeyPair.Builder>
de.christofreichardt.json.webkey.JsonWebKeyPair.Builder
- Enclosing class:
JsonWebKeyPair
A
JsonWebKey.Builder for building JsonWebKeyPairs by internally generating
an EC key pair for the curve "secp256r1".- Author:
- Christof Reichardt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theJsonWebKeyPairinstance with the configured parameters.withSecureRandom(SecureRandom secureRandom) Indicates theSecureRandominstance to be used when generating theJsonWebKeyPair.Methods inherited from class JsonWebKey.Builder
withKid
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds theJsonWebKeyPairinstance with the configured parameters.- Returns:
- the appropriately configured
JsonWebKeyPairinstance - Throws:
NoSuchAlgorithmException- relayed from the underlying "Java Cryptography Architecture"InvalidAlgorithmParameterException- relayed from the underlying "Java Cryptography Architecture"
-
withSecureRandom
Indicates theSecureRandominstance to be used when generating theJsonWebKeyPair.- Parameters:
secureRandom- the to be usedSecureRandominstance- Returns:
- this
JsonWebKeyPair.Builderinstance
-