Package org.pac4j.core.matching.matcher
Class CorsMatcher
java.lang.Object
org.pac4j.core.matching.matcher.CorsMatcher
- All Implemented Interfaces:
Matcher
Define how the CORS requests are authorized.
- Since:
- 4.0.0
- Author:
- Jerome Leleu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
matches
(WebContext context, SessionStore sessionStore) Check if the web context matches.void
setAllowCredentials
(Boolean allowCredentials) void
setAllowHeaders
(String allowHeaders) void
setAllowMethods
(Set<HttpConstants.HTTP_METHOD> allowMethods) void
setAllowOrigin
(String allowOrigin) void
setExposeHeaders
(String exposeHeaders) void
setMaxAge
(int maxAge) toString()
-
Constructor Details
-
CorsMatcher
public CorsMatcher()
-
-
Method Details
-
matches
Description copied from interface:Matcher
Check if the web context matches. -
getAllowOrigin
-
setAllowOrigin
-
getExposeHeaders
-
setExposeHeaders
-
getMaxAge
public int getMaxAge() -
setMaxAge
public void setMaxAge(int maxAge) -
getAllowCredentials
-
setAllowCredentials
-
getAllowMethods
-
setAllowMethods
-
getAllowHeaders
-
setAllowHeaders
-
toString
-