public class BasicAuthHandler extends Object implements AuthHandler
original
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
BasicAuthHandler(BasicAuthHandler delegate) |
Modifier and Type | Method and Description |
---|---|
AuthHandler |
addPermission(String permission)
Add a required permission for this auth handler
|
AuthHandler |
addPermissions(Set<String> permissions)
Add a set of required permissions for this auth handler
|
AuthHandler |
addRole(String role)
Add a required role for this auth handler
|
AuthHandler |
addRoles(Set<String> roles)
Add a set of required roles for this auth handler
|
static AuthHandler |
create(AuthProvider authProvider)
Create a basic auth handler
|
static AuthHandler |
create(AuthProvider authProvider,
String realm)
Create a basic auth handler, specifying realm
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static BasicAuthHandler |
newInstance(BasicAuthHandler arg) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
public BasicAuthHandler(BasicAuthHandler delegate)
public Object getDelegate()
getDelegate
in interface AuthHandler
public void handle(RoutingContext arg0)
Handler
handle
in interface Handler<RoutingContext>
handle
in interface AuthHandler
arg0
- the event to handlepublic AuthHandler addRole(String role)
addRole
in interface AuthHandler
role
- the rolepublic AuthHandler addPermission(String permission)
addPermission
in interface AuthHandler
permission
- the permissionpublic AuthHandler addRoles(Set<String> roles)
addRoles
in interface AuthHandler
roles
- the set of rolespublic AuthHandler addPermissions(Set<String> permissions)
addPermissions
in interface AuthHandler
permissions
- the set of permissionspublic static AuthHandler create(AuthProvider authProvider)
authProvider
- the auth provider to usepublic static AuthHandler create(AuthProvider authProvider, String realm)
authProvider
- the auth service to userealm
- the realm to usepublic static BasicAuthHandler newInstance(BasicAuthHandler arg)
Copyright © 2015. All Rights Reserved.