public class EncryptedThenSignedJwtBuilder extends AbstractJwtBuilder implements SignedJwtBuilder
| Constructor and Description |
|---|
EncryptedThenSignedJwtBuilder(EncryptedJwtBuilder encryptedJwtBuilder,
SigningHandler signingHandler,
JwsAlgorithm jwsAlgorithm)
Constructs a new SignedEncryptedJwtBuilder that will use the given EncryptedJwtBuilder, to build the nested
Encrypted JWT, and the private key and JwsAlgorithm to sign the outer JWT.
|
| Modifier and Type | Method and Description |
|---|---|
SignedJwt |
asJwt()
Builds the JWT object from its constituent parts.
|
String |
build()
Builds the JWS into a
String by calling the build method on the JWS object. |
EncryptedThenSignedJwtHeaderBuilder |
headers()
Gets the JwtHeaderBuilder that this JwtBuilder will use to build the JWT's header parameters.
|
claimspublic EncryptedThenSignedJwtBuilder(EncryptedJwtBuilder encryptedJwtBuilder, SigningHandler signingHandler, JwsAlgorithm jwsAlgorithm)
encryptedJwtBuilder - The EncryptedJwtBuilder instance.signingHandler - The SigningHandler instance used to sign the JWS.jwsAlgorithm - The JwsAlgorithm to use when signing the JWT.public SignedJwt asJwt()
JwtBuilderasJwt in interface JwtBuilderpublic String build()
String by calling the build method on the JWS object.
build in interface JwtBuilderSignedJwt.build()public EncryptedThenSignedJwtHeaderBuilder headers()
AbstractJwtBuilderheaders in class AbstractJwtBuilderCopyright © 2025 Open Identity Platform Community. All rights reserved.