Package org.forgerock.json.jose.builders
Class SignedThenEncryptedJwtBuilder
java.lang.Object
org.forgerock.json.jose.builders.AbstractJwtBuilder
org.forgerock.json.jose.builders.EncryptedJwtBuilder
org.forgerock.json.jose.builders.SignedThenEncryptedJwtBuilder
- All Implemented Interfaces:
JwtBuilder
Builder for nested signed-then-encrypted JWT. This is the preferred nesting order for OpenID Connect and other
tokens.
-
Method Summary
Modifier and TypeMethodDescriptionasJwt()
Builds the JWT object from its constituent parts.claims
(JwtClaimsSet claims) Sets the JwtClaimsSet for this JwtBuilder.headers()
Gets the JweHeaderBuilder that this JwtBuilder will use to build the JWE's header parameters.Methods inherited from class org.forgerock.json.jose.builders.EncryptedJwtBuilder
build, sign, signedWith
-
Method Details
-
asJwt
Description copied from interface:JwtBuilder
Builds the JWT object from its constituent parts.- Specified by:
asJwt
in interfaceJwtBuilder
- Overrides:
asJwt
in classEncryptedJwtBuilder
- Returns:
- The Jwt.
-
claims
Description copied from class:EncryptedJwtBuilder
Sets the JwtClaimsSet for this JwtBuilder.- Overrides:
claims
in classEncryptedJwtBuilder
- Parameters:
claims
- The JwtClaimsSet containing the JWT's claims.- Returns:
- This EncryptedJwtBuilder.
-
headers
Description copied from class:EncryptedJwtBuilder
Gets the JweHeaderBuilder that this JwtBuilder will use to build the JWE's header parameters.- Overrides:
headers
in classEncryptedJwtBuilder
- Returns:
- The JweHeaderBuilder instance.
-