new JWTAuthHandler()
An auth handler that provides JWT Authentication support.
- Source:
Methods
-
addAuthorities(authorities) → {AuthHandler}
-
Add a set of required authorities for this auth handler
Parameters:
Name Type Description authoritiesArray.<string> the set of authorities - Source:
Returns:
a reference to this, so the API can be used fluently- Type
- AuthHandler
-
addAuthority(authority) → {AuthHandler}
-
Add a required authority for this auth handler
Parameters:
Name Type Description authoritystring the authority - Source:
Returns:
a reference to this, so the API can be used fluently- Type
- AuthHandler
-
handle(arg0)
-
Parameters:
Name Type Description arg0RoutingContext - Source:
-
setAudience(audience) → {JWTAuthHandler}
-
Set the audience list
Parameters:
Name Type Description audienceArray.<string> the audience list - Source:
Returns:
a reference to this for fluency- Type
- JWTAuthHandler
-
setIgnoreExpiration(ignoreExpiration) → {JWTAuthHandler}
-
Set whether expiration is ignored
Parameters:
Name Type Description ignoreExpirationboolean whether expiration is ignored - Source:
Returns:
a reference to this for fluency- Type
- JWTAuthHandler
-
setIssuer(issuer) → {JWTAuthHandler}
-
Set the issuer
Parameters:
Name Type Description issuerstring the issuer - Source:
Returns:
a reference to this for fluency- Type
- JWTAuthHandler