Package org.forgerock.json.jose.builders
Class EncryptedThenSignedJwtHeaderBuilder
- java.lang.Object
-
- org.forgerock.json.jose.builders.JwtHeaderBuilder<T,B>
-
- org.forgerock.json.jose.builders.JwtSecureHeaderBuilder<EncryptedThenSignedJwtBuilder,EncryptedThenSignedJwtHeaderBuilder>
-
- org.forgerock.json.jose.builders.EncryptedThenSignedJwtHeaderBuilder
-
- Direct Known Subclasses:
SignedEncryptedJwsHeaderBuilder
public class EncryptedThenSignedJwtHeaderBuilder extends JwtSecureHeaderBuilder<EncryptedThenSignedJwtBuilder,EncryptedThenSignedJwtHeaderBuilder>
An implementation of a JWS Header builder that provides a fluent builder pattern to create JWS headers for signed encrypted JWTs.See
JwsHeader
for information on the JwsHeader object that this builder creates.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description EncryptedThenSignedJwtHeaderBuilder(EncryptedThenSignedJwtBuilder 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
-
EncryptedThenSignedJwtHeaderBuilder
public EncryptedThenSignedJwtHeaderBuilder(EncryptedThenSignedJwtBuilder 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<EncryptedThenSignedJwtBuilder,EncryptedThenSignedJwtHeaderBuilder>
- Returns:
- A JwsHeader instance.
-
-