Package org.forgerock.json.jose.builders
Class JwtSecureHeaderBuilder<T extends JwtBuilder,B extends JwtSecureHeaderBuilder<T,B>>
java.lang.Object
org.forgerock.json.jose.builders.JwtHeaderBuilder<T,B>
org.forgerock.json.jose.builders.JwtSecureHeaderBuilder<T,B>
- Type Parameters:
T
- the type of JwtBuilder that parents this JwtHeaderBuilder.B
- the type of this JwtHeaderBuilder
- Direct Known Subclasses:
EncryptedThenSignedJwtHeaderBuilder
,JweHeaderBuilder
,JwsHeaderBuilder
public abstract class JwtSecureHeaderBuilder<T extends JwtBuilder,B extends JwtSecureHeaderBuilder<T,B>>
extends JwtHeaderBuilder<T,B>
A base implementation of a JWT header builder, for the common security header parameters shared by the JWS and JWE
headers, that provides a fluent builder pattern to creating JWT headers.
See JwtSecureHeader
for information on the JwtSecureHeader object that this
builder creates.
- Since:
- 2.0.0
-
Constructor Summary
ConstructorDescriptionJwtSecureHeaderBuilder
(T jwtBuilder) Constructs a new JwtSecureHeaderBuilder, parented by the given JwtBuilder. -
Method Summary
Modifier and TypeMethodDescriptionSets the critical header parameters for this JWS.Sets the content type header parameter for this JWS.Sets the JWK Set URL header parameter for this JWS.Sets the JSON Web Key header parameter for this JWS.Sets the Key ID header parameter for this JWS.Sets the X.509 Certificate Chain header parameter for this JWS.Sets the X.509 Certificate Thumbprint header parameter for this JWS.Sets the X.509 URL header parameter for this JWS.zip
(CompressionAlgorithm zip) Sets the Compression Algorithm header parameter for this JWE.Methods inherited from class org.forgerock.json.jose.builders.JwtHeaderBuilder
alg, build, done, getHeaders, header, headerIfNotNull
-
Constructor Details
-
JwtSecureHeaderBuilder
Constructs a new JwtSecureHeaderBuilder, parented by the given JwtBuilder.- Parameters:
jwtBuilder
- The JwtBuilder instance that this JwtSecureHeaderBuilder is a child of.
-
-
Method Details
-
jku
Sets the JWK Set URL header parameter for this JWS.- Parameters:
jku
- The JWK Set URL.- Returns:
- This JwtSecureHeaderBuilder.
- See Also:
-
jwk
Sets the JSON Web Key header parameter for this JWS.- Parameters:
jwk
- The JSON Web Key.- Returns:
- This JwtSecureHeaderBuilder.
- See Also:
-
x5u
Sets the X.509 URL header parameter for this JWS.- Parameters:
x5u
- THe X.509 URL.- Returns:
- This JwtSecureHeaderBuilder.
- See Also:
-
x5t
Sets the X.509 Certificate Thumbprint header parameter for this JWS.- Parameters:
x5t
- The X.509 Certificate Thumbprint.- Returns:
- This JwtSecureHeaderBuilder.
- See Also:
-
x5c
Sets the X.509 Certificate Chain header parameter for this JWS.- Parameters:
x5c
- The X.509 Certificate Chain.- Returns:
- This JwtSecureHeaderBuilder.
- See Also:
-
kid
Sets the Key ID header parameter for this JWS.- Parameters:
kid
- The Key ID.- Returns:
- This JwtSecureHeaderBuilder.
- See Also:
-
cty
Sets the content type header parameter for this JWS.- Parameters:
cty
- The content type of the JWS payload.- Returns:
- This JwtSecureHeaderBuilder.
- See Also:
-
crit
Sets the critical header parameters for this JWS.- Parameters:
crit
- A List of the JWS critical parameters.- Returns:
- This JwtSecureHeaderBuilder.
- See Also:
-
zip
Sets the Compression Algorithm header parameter for this JWE.- Parameters:
zip
- The Compression Algorithm.- Returns:
- This JweHeaderBuilder.
- See Also:
-