Class JwtVerifier.JwtClaims

java.lang.Object
io.fluxzero.proxy.JwtVerifier.JwtClaims
Enclosing class:
JwtVerifier

public static class JwtVerifier.JwtClaims extends Object
Represents the claims contained in a decoded JWT (JSON Web Token).

This class encapsulates the JSON structure of the claims within the JWT and provides helper methods to retrieve specific claim values.

Thread-safe and immutable, as enforced by the `@Value` annotation.

  • Constructor Details

    • JwtClaims

      public JwtClaims()
  • Method Details

    • getString

      public String getString(String name)
      Retrieves the string value associated with the specified claim name from the JSON structure.
      Parameters:
      name - the name of the claim whose value needs to be retrieved
      Returns:
      the string value of the specified claim, or null if the claim does not exist or is not a string