public interface JwtTokenParser
Authentication instance.| Modifier and Type | Method and Description |
|---|---|
static JwtTokenParser |
get()
Get the default
JwtTokenParser. |
Authentication.Builder |
parseJwt(JwtConfiguration configuration,
String jwt)
Parse given JWT and obtain it as an
Authentication instance. |
Authentication.Builder parseJwt(JwtConfiguration configuration, String jwt) throws JwtConfiguration.InvalidJwtConfigurationException, AuthenticationException
Authentication instance.
If the JwtConfiguration.isIncludeDetails() switch is true, the JWT claims will be included
in the Authentication instance parameter set, using the claim name as detail key.
If the JwtConfiguration.isIncludePermissions() switch is true, the default JWT claim named
AuthenticationClaims.CLAIM_NAME_PERMISSIONS, if present, is parsed to obtain the the authentication
permissions.
configuration - JWT configuration to use (not null)jwt - JWT value (not null)Authentication instance which represents the JWT value, if the token is valid.JwtConfiguration.InvalidJwtConfigurationException - If the JWT confguration is not validAuthenticationException - If the JWT token validation failsstatic JwtTokenParser get()
JwtTokenParser.JwtTokenParser.Copyright © 2019 The Holon Platform. All rights reserved.