Package org.forgerock.json.jose.builders
Class JwsHeaderBuilder
java.lang.Object
org.forgerock.json.jose.builders.JwtHeaderBuilder<T,B>
org.forgerock.json.jose.builders.JwtSecureHeaderBuilder<SignedJwtBuilderImpl,JwsHeaderBuilder>
org.forgerock.json.jose.builders.JwsHeaderBuilder
An implementation of a JWS Header builder that provides a fluent builder pattern to create JWS headers.
See JwsHeader
for information on the JwsHeader object that this builder creates.
- Since:
- 2.0.0
-
Constructor Summary
ConstructorDescriptionJwsHeaderBuilder
(SignedJwtBuilderImpl jwtBuilder) Constructs a new JwsHeaderBuilder, parented by the given JwtBuilder. -
Method Summary
Methods inherited from class org.forgerock.json.jose.builders.JwtSecureHeaderBuilder
crit, cty, jku, jwk, kid, x5c, x5t, x5u, zip
Methods inherited from class org.forgerock.json.jose.builders.JwtHeaderBuilder
alg, done, getHeaders, header, headerIfNotNull
-
Constructor Details
-
JwsHeaderBuilder
Constructs a new JwsHeaderBuilder, parented by the given JwtBuilder.- Parameters:
jwtBuilder
- The JwtBuilder instance that this JwsHeaderBuilder is a child of.
-
-
Method Details
-
build
Creates a JwsHeader instance from the header parameters set in this builder.- Specified by:
build
in classJwtHeaderBuilder<SignedJwtBuilderImpl,
JwsHeaderBuilder> - Returns:
- A JwsHeader instance.
-