Interface Claims

All Known Subinterfaces:
JwtClaims, OpenIdClaims
All Known Implementing Classes:
JwtClaimsSetAdapter, JWTOpenIdClaims, MapClaims

public interface Claims
Authentication claims.
Since:
1.1.0
Author:
Sergio del Amo
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    get(String name)
    Retrieves a value from the claims for the given name.
     
  • Method Details

    • get

      @Nullable Object get(String name)
      Retrieves a value from the claims for the given name.
      Parameters:
      name - the claim name
      Returns:
      null if the claim not exist or the claim value.
    • names

      @NonNull Set<String> names()
      Returns:
      All claim names.
    • contains

      boolean contains(String name)
      Parameters:
      name - the claim name
      Returns:
      false if the claim does not exist.