@groovy.transform.CompileStatic class JWTAuthHandler extends java.lang.Object
An auth handler that provides JWT Authentication support.
| Constructor and description |
|---|
JWTAuthHandler
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
AuthHandler |
addAuthorities(java.util.Set<java.lang.String> authorities)Add a set of required authorities for this auth handler |
AuthHandler |
addAuthority(java.lang.String authority)Add a required authority for this auth handler |
static JWTAuthHandler |
create(JWTAuth authProvider)Create a JWT auth handler |
static JWTAuthHandler |
create(JWTAuth authProvider, java.lang.String skip)Create a JWT auth handler |
java.lang.Object |
getDelegate() |
void |
handle(RoutingContext arg0) |
JWTAuthHandler |
setAudience(java.util.List<java.lang.String> audience)Set the audience list |
JWTAuthHandler |
setIgnoreExpiration(boolean ignoreExpiration)Set whether expiration is ignored |
JWTAuthHandler |
setIssuer(java.lang.String issuer)Set the issuer |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Add a set of required authorities for this auth handler
authorities - the set of authoritiesAdd a required authority for this auth handler
authority - the authorityCreate a JWT auth handler
authProvider - the auth provider to useCreate a JWT auth handler
authProvider - the auth provider to use.Set the audience list
audience - the audience listSet whether expiration is ignored
ignoreExpiration - whether expiration is ignoredSet the issuer
issuer - the issuer