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 |
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
|
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, waitnewInstancepublic BasicAuthHandler(BasicAuthHandler delegate)
public Object getDelegate()
getDelegate in interface AuthHandlerpublic void handle(RoutingContext arg0)
Handlerhandle in interface Handler<RoutingContext>handle in interface AuthHandlerarg0 - the event to handlepublic AuthHandler addAuthority(String authority)
addAuthority in interface AuthHandlerauthority - the authoritypublic AuthHandler addAuthorities(Set<String> authorities)
addAuthorities in interface AuthHandlerauthorities - the set of authoritiespublic 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.