public interface AuthHandler extends io.vertx.core.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.
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
|
AuthHandler addAuthority(String authority)
authority
- the authorityAuthHandler addAuthorities(Set<String> authorities)
authorities
- the set of authoritiesCopyright © 2017. All rights reserved.