@CompileStatic class JWTAuthHandler
An auth handler that provides JWT Authentication support.
| Constructor and description |
|---|
JWTAuthHandler
(Object delegate) |
| Type | Name 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) |
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 |
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 issuerio.vertx:vertx-web:3.1.0