T
- the type of JwtBuilder that parents this JwtHeaderBuilder.B
- the type of this JwtHeaderBuilderpublic abstract class JwtSecureHeaderBuilder<T extends JwtBuilder,B extends JwtSecureHeaderBuilder<T,B>> extends JwtHeaderBuilder<T,B>
See JwtSecureHeader
for information on the JwtSecureHeader object that this
builder creates.
Constructor and Description |
---|
JwtSecureHeaderBuilder(T jwtBuilder)
Constructs a new JwtSecureHeaderBuilder, parented by the given JwtBuilder.
|
Modifier and Type | Method and Description |
---|---|
B |
crit(List<String> crit)
Sets the critical header parameters for this JWS.
|
B |
cty(String cty)
Sets the content type header parameter for this JWS.
|
B |
jku(URL jku)
Sets the JWK Set URL header parameter for this JWS.
|
B |
jwk(JWK jwk)
Sets the JSON Web Key header parameter for this JWS.
|
B |
kid(String kid)
Sets the Key ID header parameter for this JWS.
|
B |
x5c(List<String> x5c)
Sets the X.509 Certificate Chain header parameter for this JWS.
|
B |
x5t(String x5t)
Sets the X.509 Certificate Thumbprint header parameter for this JWS.
|
B |
x5u(URL x5u)
Sets the X.509 URL header parameter for this JWS.
|
B |
zip(CompressionAlgorithm zip)
Sets the Compression Algorithm header parameter for this JWE.
|
alg, build, done, getHeaders, header, headerIfNotNull
public JwtSecureHeaderBuilder(T jwtBuilder)
jwtBuilder
- The JwtBuilder instance that this JwtSecureHeaderBuilder is a child of.public B jku(URL jku)
jku
- The JWK Set URL.JwtSecureHeader.setJwkSetUrl(java.net.URL)
public B jwk(JWK jwk)
jwk
- The JSON Web Key.JwtSecureHeader.setJsonWebKey(org.forgerock.json.jose.jwk.JWK)
public B x5u(URL x5u)
x5u
- THe X.509 URL.JwtSecureHeader.setX509Url(java.net.URL)
public B x5t(String x5t)
x5t
- The X.509 Certificate Thumbprint.JwtSecureHeader.setX509CertificateThumbprint(String)
public B x5c(List<String> x5c)
x5c
- The X.509 Certificate Chain.JwtSecureHeader.setX509CertificateChain(java.util.List)
public B kid(String kid)
kid
- The Key ID.JwtSecureHeader.setKeyId(String)
public B cty(String cty)
cty
- The content type of the JWS payload.JwtSecureHeader.setContentType(String)
public B crit(List<String> crit)
crit
- A List of the JWS critical parameters.JwtSecureHeader.setCriticalHeaders(java.util.List)
public B zip(CompressionAlgorithm zip)
zip
- The Compression Algorithm.JwtSecureHeader.setCompressionAlgorithm(CompressionAlgorithm)
Copyright © 2010-2018, ForgeRock All Rights Reserved.