public class RedirectAuthHandler extends Object implements AuthHandler
original
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
RedirectAuthHandler(RedirectAuthHandler 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 handler
|
static AuthHandler |
create(AuthProvider authProvider,
String loginRedirectURL)
Create a handler
|
static AuthHandler |
create(AuthProvider authProvider,
String loginRedirectURL,
String returnURLParam)
Create a handler
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static RedirectAuthHandler |
newInstance(RedirectAuthHandler arg) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
public RedirectAuthHandler(RedirectAuthHandler 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 addAuthority(String authority)
addAuthority
in interface AuthHandler
authority
- the authoritypublic AuthHandler addAuthorities(Set<String> authorities)
addAuthorities
in interface AuthHandler
authorities
- the set of authoritiespublic static AuthHandler create(AuthProvider authProvider)
authProvider
- the auth service to usepublic static AuthHandler create(AuthProvider authProvider, String loginRedirectURL)
authProvider
- the auth service to useloginRedirectURL
- the url to redirect the user topublic static AuthHandler create(AuthProvider authProvider, String loginRedirectURL, String returnURLParam)
authProvider
- the auth service to useloginRedirectURL
- the url to redirect the user toreturnURLParam
- the name of param used to store return url information in sessionpublic static RedirectAuthHandler newInstance(RedirectAuthHandler arg)
Copyright © 2015. All Rights Reserved.