Interface Jwt

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String build()
      Builds the JWT into a String by following the steps specified in the relevant specification according to whether the JWT is being signed and/or encrypted.
      Jwt copy()
      Create a copy of the current JWT.
      JwtClaimsSet getClaimsSet()
      Gets the claims set object for the Jwt, which contains all of the claims (name value pairs) conveyed by the JWT.
      JwtHeader getHeader()
      Gets the header object for the JWT, which contains properties which describe the cryptographic operations applied to the JWT, among other properties.
    • Method Detail

      • getHeader

        JwtHeader getHeader()
        Gets the header object for the JWT, which contains properties which describe the cryptographic operations applied to the JWT, among other properties.

        When the JWT is digitally signed or MACed, the JWT Header is a JWS Header. When the JWT is encrypted, the JWT Header is a JWE Header.

        Returns:
        The JWTs Header.
      • getClaimsSet

        JwtClaimsSet getClaimsSet()
        Gets the claims set object for the Jwt, which contains all of the claims (name value pairs) conveyed by the JWT.
        Returns:
        The JWTs Claims Set.
      • copy

        Jwt copy()
        Create a copy of the current JWT.
        Returns:
        a copy of the JWT.