Interface DecodedJwt


  • public interface DecodedJwt
    A Jwt token consists of three parts, separated by ".": header.payload.signature Use Base64JwtDecoder.getInstance().decode(token) to get a DecodedJwt instance.
    • Method Detail

      • getHeader

        String getHeader()
        Get the base64 decoded header of the jwt as UTF-8 String.
        Returns:
        the decoded header.
      • getPayload

        String getPayload()
        Get the base64 decoded payload of the jwt as UTF-8 String.
        Returns:
        the decoded payload.
      • getSignature

        String getSignature()
        Get the encoded signature of the jwt.
        Returns:
        the decoded signature.
      • getEncodedToken

        String getEncodedToken()
        Get the original encoded access token.

        Never expose this token via log or via HTTP.

        Returns:
        jwt token