Package io.micronaut.security.token
Interface Claims
- All Known Subinterfaces:
OpenIdClaims
- All Known Implementing Classes:
JwtClaimsSetAdapter
,JWTOpenIdClaims
,MapClaims
public interface Claims
Authentication claims.
- Since:
- 1.1.0
- Author:
- Sergio del Amo
-
Field Details
-
ISSUER
- See Also:
-
SUBJECT
- See Also:
-
EXPIRATION_TIME
- See Also:
-
NOT_BEFORE
- See Also:
-
ISSUED_AT
- See Also:
-
TOKEN_ID
- See Also:
-
KEY_ID
- See Also:
-
AUDIENCE
- See Also:
-
ALL_CLAIMS
-
-
Method Details
-
get
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
- Returns:
- All claim names.
-
contains
- Parameters:
name
- the claim name- Returns:
false
if the claim does not exist.
-