Package org.forgerock.openam.cors
Class CORSConstants
- java.lang.Object
-
- org.forgerock.openam.cors.CORSConstants
-
public final class CORSConstants extends Object
Holds all the necessary constants for the CORS Filter. Includes both keys for the configuration, as well as strings used throughout the CORS protocol.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAC_ALLOW_CREDSResponse header indicating access to the cookies.static StringAC_ALLOW_HEADERSResponse header indicating list of allowed headers.static StringAC_ALLOW_METHODSResponse header indicating list of allowed methods.static StringAC_ALLOW_ORIGINResponse header containing list of allowed origins.static StringAC_CREDENTIALS_TRUECase-sensitive true string for use in Access-Control-Allow-Credentials responsestatic StringAC_EXPOSE_HEADERSList of headers the caller should expose to its CORS client.static StringAC_MAX_AGEMax length of time (in seconds) a user agent's CORS client should cache preflight responses.static StringAC_REQUEST_HEADERSPreflight-request header - asking us if CORS will handle these headers.static StringAC_REQUEST_METHODPreflight-request method - asking us if CORS will handle this method.static StringALLIndicative that every server should be trusted.static StringALLOW_CREDENTIALS_KEYAllow credentials Key.static StringEXPECTED_HOSTNAME_KEYExpected hostname Keystatic StringEXPOSE_HEADERS_KEYExposed Headers Key.static StringHEADERS_KEYConfiguration Allowed Headers Key.static StringHOSTUsed to check the host name provided is the same as the one the server belongs tostatic StringHTTP_OPTIONSCase-sensitive HTTP OPTIONS method.static StringMAX_AGE_KEYConfiguration Max Age Key.static StringMETHODS_KEYConfiguration Allowed Methods Key.static StringORIGINOrigin header.static StringORIGINS_KEYConfiguration Allowed Origins Key.static StringVARYUsed to indicate that the Origin header should not be cached
-
-
-
Field Detail
-
HEADERS_KEY
public static final String HEADERS_KEY
Configuration Allowed Headers Key.- See Also:
- Constant Field Values
-
EXPECTED_HOSTNAME_KEY
public static final String EXPECTED_HOSTNAME_KEY
Expected hostname Key- See Also:
- Constant Field Values
-
ORIGINS_KEY
public static final String ORIGINS_KEY
Configuration Allowed Origins Key. REQUIRED CONFIGURATION- See Also:
- Constant Field Values
-
METHODS_KEY
public static final String METHODS_KEY
Configuration Allowed Methods Key. REQUIRED CONFIGURATION- See Also:
- Constant Field Values
-
EXPOSE_HEADERS_KEY
public static final String EXPOSE_HEADERS_KEY
Exposed Headers Key.- See Also:
- Constant Field Values
-
ALLOW_CREDENTIALS_KEY
public static final String ALLOW_CREDENTIALS_KEY
Allow credentials Key.- See Also:
- Constant Field Values
-
MAX_AGE_KEY
public static final String MAX_AGE_KEY
Configuration Max Age Key.- See Also:
- Constant Field Values
-
HTTP_OPTIONS
public static final String HTTP_OPTIONS
Case-sensitive HTTP OPTIONS method.- See Also:
- Constant Field Values
-
ALL
public static final String ALL
Indicative that every server should be trusted.- See Also:
- Constant Field Values
-
ORIGIN
public static final String ORIGIN
Origin header.- See Also:
- Constant Field Values
-
AC_ALLOW_ORIGIN
public static final String AC_ALLOW_ORIGIN
Response header containing list of allowed origins.- See Also:
- Constant Field Values
-
AC_ALLOW_CREDS
public static final String AC_ALLOW_CREDS
Response header indicating access to the cookies.- See Also:
- Constant Field Values
-
AC_CREDENTIALS_TRUE
public static final String AC_CREDENTIALS_TRUE
Case-sensitive true string for use in Access-Control-Allow-Credentials response- See Also:
- Constant Field Values
-
AC_ALLOW_METHODS
public static final String AC_ALLOW_METHODS
Response header indicating list of allowed methods.- See Also:
- Constant Field Values
-
AC_ALLOW_HEADERS
public static final String AC_ALLOW_HEADERS
Response header indicating list of allowed headers.- See Also:
- Constant Field Values
-
AC_REQUEST_METHOD
public static final String AC_REQUEST_METHOD
Preflight-request method - asking us if CORS will handle this method.- See Also:
- Constant Field Values
-
AC_REQUEST_HEADERS
public static final String AC_REQUEST_HEADERS
Preflight-request header - asking us if CORS will handle these headers.- See Also:
- Constant Field Values
-
AC_EXPOSE_HEADERS
public static final String AC_EXPOSE_HEADERS
List of headers the caller should expose to its CORS client.- See Also:
- Constant Field Values
-
AC_MAX_AGE
public static final String AC_MAX_AGE
Max length of time (in seconds) a user agent's CORS client should cache preflight responses.- See Also:
- Constant Field Values
-
VARY
public static final String VARY
Used to indicate that the Origin header should not be cached- See Also:
- Constant Field Values
-
HOST
public static final String HOST
Used to check the host name provided is the same as the one the server belongs to- See Also:
- Constant Field Values
-
-