public interface AuthHandler extends Handler<RoutingContext>
An auth handler allows your application to provide authentication/authorisation support.
Auth handler requires a SessionHandler
to be on the routing chain before it.
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Method and Description |
---|---|
AuthHandler |
addAuthorities(Set<String> authorities)
Add a set of required authorities for this auth handler
|
AuthHandler |
addAuthority(String authority)
Add a required authority for this auth handler
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static AuthHandler |
newInstance(AuthHandler arg) |
Object getDelegate()
void handle(RoutingContext arg0)
Handler
handle
in interface Handler<RoutingContext>
arg0
- the event to handleAuthHandler addAuthority(String authority)
authority
- the authorityAuthHandler addAuthorities(Set<String> authorities)
authorities
- the set of authoritiesstatic AuthHandler newInstance(AuthHandler arg)
Copyright © 2015. All Rights Reserved.