public class JWTAuthHandler extends Object implements AuthHandler
original non RX-ified interface using Vert.x codegen.| Constructor and Description |
|---|
JWTAuthHandler(JWTAuthHandler 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 JWTAuthHandler |
create(AuthProvider authProvider)
Create a JWT auth handler
|
static JWTAuthHandler |
create(AuthProvider authProvider,
String skip)
Create a JWT auth handler
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static JWTAuthHandler |
newInstance(JWTAuthHandler arg) |
JWTAuthHandler |
setAudience(List<String> audience)
Set the audience list
|
JWTAuthHandler |
setIgnoreExpiration(boolean ignoreExpiration)
Set whether expiration is ignored
|
JWTAuthHandler |
setIssuer(String issuer)
Set the issuer
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstancepublic JWTAuthHandler(JWTAuthHandler 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 JWTAuthHandler create(AuthProvider authProvider)
authProvider - the auth provider to usepublic static JWTAuthHandler create(AuthProvider authProvider, String skip)
authProvider - the auth provider to use.skip - public JWTAuthHandler setAudience(List<String> audience)
audience - the audience listpublic JWTAuthHandler setIssuer(String issuer)
issuer - the issuerpublic JWTAuthHandler setIgnoreExpiration(boolean ignoreExpiration)
ignoreExpiration - whether expiration is ignoredpublic static JWTAuthHandler newInstance(JWTAuthHandler arg)
Copyright © 2015. All rights reserved.