Package io.micronaut.security.token
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(java.lang.String name)
java.lang.Object
get(java.lang.String name)
Retrieves a value from the claims for the given name.java.util.Set<java.lang.String>
names()
-
-
-
Method Detail
-
get
@Nullable java.lang.Object get(java.lang.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 java.util.Set<java.lang.String> names()
- Returns:
- All claim names.
-
contains
boolean contains(java.lang.String name)
- Parameters:
name
- the claim name- Returns:
false
if the claim does not exist.
-
-