An auth handler that provides JWT Authentication support.
AnythingJWTAuthHandlerBasicIdentifiableObjectAnythingno subtypes hierarchy
| Initializer |
JWTAuthHandler(JWTAuthHandler unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
addAuthorities | shared actual default AuthHandler addAuthorities(Set<String> authorities)Add a set of required authorities for this auth handler Parameters:
Refines AuthHandler.addAuthorities |
addAuthority | shared actual default AuthHandler addAuthority(String authority)Add a required authority for this auth handler Parameters:
Refines AuthHandler.addAuthority |
authorize | shared actual default void authorize(User user, Anything(Throwable?) handler)Authorizes the given user against all added authorities. Parameters:
Refines AuthHandler.authorize |
handle | shared actual default void handle(RoutingContext arg0)Refines AuthHandler.handle |
parseCredentials | shared actual default void parseCredentials(RoutingContext context, Anything(Throwable|Object) handler)Parses the credentials from the request into a JsonObject. The implementation should be able to extract the required info for the auth provider in the format the provider expects. Parameters:
Refines AuthHandler.parseCredentials |
setAudience | shared default JWTAuthHandler setAudience(List<String> audience)Set the audience list Parameters:
|
setIgnoreExpiration | shared default JWTAuthHandler setIgnoreExpiration(Boolean ignoreExpiration)Set whether expiration is ignored Parameters:
|
setIssuer | shared default JWTAuthHandler setIssuer(String issuer)Set the issuer Parameters:
|
| Inherited Methods |
Methods inherited from: Objectequals |
Methods inherited from: AuthHandler |