Package org.keycloak.services.cors
Class DefaultCors
java.lang.Object
org.keycloak.services.cors.DefaultCors
- Author:
- Stian Thorgersen
-
Field Summary
Fields inherited from interface org.keycloak.services.cors.Cors
ACCESS_CONTROL_ALLOW_CREDENTIALS, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_ALLOW_ORIGIN_WILDCARD, ACCESS_CONTROL_EXPOSE_HEADERS, ACCESS_CONTROL_MAX_AGE, AUTHORIZATION_HEADER, DEFAULT_ALLOW_HEADERS, DEFAULT_ALLOW_METHODS, DEFAULT_MAX_AGE, INCLUDE_REDIRECTS, ORIGIN_HEADER
-
Method Summary
Modifier and TypeMethodDescriptionaddExposedHeaders
(String... exposedHeaders) allowedMethods
(String... allowedMethods) allowedOrigins
(String... allowedOrigins) allowedOrigins
(KeycloakSession session, ClientModel client) allowedOrigins
(AccessToken token) auth()
jakarta.ws.rs.core.Response
build()
boolean
build
(BiConsumer<String, String> addHeader) boolean
build
(HttpResponse response) builder
(jakarta.ws.rs.core.Response.ResponseBuilder builder) void
close()
exposedHeaders
(String... exposedHeaders) request
(HttpRequest request)
-
Method Details
-
request
-
builder
-
preflight
-
auth
-
allowAllOrigins
- Specified by:
allowAllOrigins
in interfaceCors
-
allowedOrigins
- Specified by:
allowedOrigins
in interfaceCors
-
allowedOrigins
- Specified by:
allowedOrigins
in interfaceCors
-
allowedOrigins
- Specified by:
allowedOrigins
in interfaceCors
-
allowedMethods
- Specified by:
allowedMethods
in interfaceCors
-
exposedHeaders
- Specified by:
exposedHeaders
in interfaceCors
-
addExposedHeaders
- Specified by:
addExposedHeaders
in interfaceCors
-
build
public jakarta.ws.rs.core.Response build() -
build
-
build
-
close
public void close()
-