public class SignedEncryptedJwtBuilder extends Object implements SignedJwtBuilder
Constructor and Description |
---|
SignedEncryptedJwtBuilder(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.
|
public SignedEncryptedJwtBuilder(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()
asJwt
in interface JwtBuilder
public String build()
String
by calling the build method on the JWS object.
build
in interface JwtBuilder
SignedJwt.build()
Copyright 2011-2015 ForgeRock AS.