Class JOSEHeader.AlgorithmBuilder
java.lang.Object
de.christofreichardt.json.websignature.JOSEHeader.AlgorithmBuilder
- Enclosing class:
JOSEHeader
A builder for a
JOSEHeader preconfigured with the "alg" parameter.- Author:
- Christof Reichardt
-
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmBuilder(String alg) Creates the builder preconfigured with given "alg" parameter. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theJOSEHeaderinstance with the configured parameters.Augments the builder instance with the "kid" parameter.Augments the builder instance with the "typ" parameter.
-
Constructor Details
-
AlgorithmBuilder
Creates the builder preconfigured with given "alg" parameter.- Parameters:
alg- denotes the algorithm.- See Also:
-
-
Method Details
-
withTyp
Augments the builder instance with the "typ" parameter.- Parameters:
typ- denotes the (media) type.- Returns:
- this
AlgorithmBuilderinstance. - See Also:
-
withKid
Augments the builder instance with the "kid" parameter.- Parameters:
kid- denotes the key ID.- Returns:
- this
AlgorithmBuilderinstance. - See Also:
-
build
Builds theJOSEHeaderinstance with the configured parameters.- Returns:
- the appropriately configured
JOSEHeaderinstance
-