Package org.jaxxy.security.token
Interface TokenAuthenticator
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TokenAuthenticator
A TokenAuthenticator is responsible for creating aSecurityContextgiven a token header value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.SecurityContextauthenticate(String token)Creates aSecurityContextfor the given token value.
-
-
-
Method Detail
-
authenticate
javax.ws.rs.core.SecurityContext authenticate(String token)
Creates aSecurityContextfor the given token value.- Parameters:
token- the token value- Returns:
- the security context
-
-