@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ApiAuth
Modifier and Type | Optional Element and Description |
---|---|
AnnotationBoolean |
allowCookieAuth
Allows cookie authentication to be used for the API.
|
java.lang.String[] |
blockedRegions
A list of ISO region codes to block.
|
public abstract AnnotationBoolean allowCookieAuth
true
will allow cookies to be used
to access the API, with potentially dangerous results. Please be very
cautious in enabling this setting, and make sure to require appropriate
XSRF tokens to protect your API.public abstract java.lang.String[] blockedRegions