Base interface for auth handlers.
An auth handler allows your application to provide authentication/authorisation support.
Auth handler requires a SessionHandler to be on the routing chain before it.
no type hierarchy
no supertypes hierarchy
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
addAuthorities | shared AuthHandler addAuthorities(Set<String> authorities) Add a set of required authorities for this auth handler Parameters:
|
addAuthority | shared AuthHandler addAuthority(String authority) Add a required authority for this auth handler Parameters:
|
authorize | shared void authorize(User user, Anything(Throwable?) handler) Authorizes the given user against all added authorities. Parameters:
|
handle | shared void handle(RoutingContext arg0) |
parseCredentials | shared void parseCredentials(RoutingContext context, Anything(Throwable|Object) handler) Parses the credentials from the request into a JsonObject. The implementation should be able to extract the required info for the auth provider in the format the provider expects. Parameters:
|
Inherited Methods |
Methods inherited from: Object equals |