| Type | Name and description |
|---|---|
static java.lang.String |
API_KEY_HEADER_NAME |
static java.util.List<java.lang.String> |
LOOPBACK_ADDRESSES |
static int |
STATUS_UNAUTHORISED |
ApiKeyService |
apiKeyService |
org.pac4j.http.client.direct.DirectBearerAuthClient |
bearerAuthClient |
org.pac4j.core.config.Config |
config |
grails.core.GrailsApplication |
grailsApplication |
au.org.ala.ws.security.JwtProperties |
jwtProperties |
| Constructor and description |
|---|
ApiKeyInterceptor
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
after()Executed after the action executes but prior to view rendering |
|
void |
afterView()Executed after view rendering completes |
|
boolean |
before()Executed before a matched action |
|
java.util.List<java.lang.String> |
buildWhiteList() |
|
java.lang.Object |
checkClientIp(java.lang.Object clientIp, java.util.List<java.lang.String> whiteList)Client IP passes if it is in the whitelist |
|
java.lang.Object |
getClientIP(javax.servlet.http.HttpServletRequest request) |
|
java.lang.Object |
init() |
|
boolean |
jwtApiKeyInterceptor(RequireApiKey requireApiKey, boolean fallbackToLegacy)Validate a JWT Bearer token instead of the API key. |
|
boolean |
legacyApiKeyInterceptor() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Executed after the action executes but prior to view rendering
Executed after view rendering completes
Executed before a matched action
Client IP passes if it is in the whitelist
Validate a JWT Bearer token instead of the API key.
requireApiKey - The RequireApiKey annotationfallbackToLegacy - Whether to fall back to legacy API keys if the JWT is not present.Groovy Documentation