Class AbstractJwtBuilder

java.lang.Object
org.forgerock.json.jose.builders.AbstractJwtBuilder
All Implemented Interfaces:
JwtBuilder
Direct Known Subclasses:
EncryptedJwtBuilder, EncryptedThenSignedJwtBuilder, SignedJwtBuilderImpl

public abstract class AbstractJwtBuilder extends Object implements JwtBuilder
A base implementation for all JwtBuilders that provides the basis of the JWT builder methods.
Since:
2.0.0
  • Constructor Details

    • AbstractJwtBuilder

      public AbstractJwtBuilder()
  • Method Details

    • headers

      public abstract JwtHeaderBuilder<?,?> headers()
      Gets the JwtHeaderBuilder that this JwtBuilder will use to build the JWT's header parameters.
      Returns:
      The JwtHeaderBuilder instance.
    • claims

      public AbstractJwtBuilder claims(JwtClaimsSet claimsSet)
      Sets the JwtClaimsSet for this JwtBuilder.
      Parameters:
      claimsSet - The JwtClaimsSet containing the JWT's claims.
      Returns:
      This AbstractJwtBuilder.