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
public class SignedThenEncryptedJwtBuilder extends EncryptedJwtBuilder
Builder for nested signed-then-encrypted JWT. This is the preferred nesting order for OpenID Connect and other tokens.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignedThenEncryptedJwt
asJwt()
Builds the JWT object from its constituent parts.SignedThenEncryptedJwtBuilder
claims(JwtClaimsSet claims)
Sets the JwtClaimsSet for this JwtBuilder.JweHeaderBuilder<SignedThenEncryptedJwtBuilder>
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 Detail
-
asJwt
public SignedThenEncryptedJwt 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
public SignedThenEncryptedJwtBuilder claims(JwtClaimsSet claims)
Description copied from class:EncryptedJwtBuilder
Sets the JwtClaimsSet for this JwtBuilder.- Overrides:
claims
in classEncryptedJwtBuilder
- Parameters:
claims
-- Returns:
- This EncryptedJwtBuilder.
-
headers
public JweHeaderBuilder<SignedThenEncryptedJwtBuilder> 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.
-
-