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
-
public class JwsHeaderBuilder extends JwtSecureHeaderBuilder<SignedJwtBuilderImpl,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
Constructors Constructor Description JwsHeaderBuilder(SignedJwtBuilderImpl jwtBuilder)
Constructs a new JwsHeaderBuilder, parented by the given JwtBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JwsHeader
build()
Creates a JwsHeader instance from the header parameters set in this builder.-
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 Detail
-
JwsHeaderBuilder
public JwsHeaderBuilder(SignedJwtBuilderImpl jwtBuilder)
Constructs a new JwsHeaderBuilder, parented by the given JwtBuilder.- Parameters:
jwtBuilder
- The JwtBuilder instance that this JwsHeaderBuilder is a child of.
-
-
Method Detail
-
build
protected JwsHeader build()
Creates a JwsHeader instance from the header parameters set in this builder.- Specified by:
build
in classJwtHeaderBuilder<SignedJwtBuilderImpl,JwsHeaderBuilder>
- Returns:
- A JwsHeader instance.
-
-