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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanmatches(WebContext context, SessionStore sessionStore) Check if the web context matches.voidsetAllowCredentials(Boolean allowCredentials) voidsetAllowHeaders(String allowHeaders) voidsetAllowMethods(Set<HttpConstants.HTTP_METHOD> allowMethods) voidsetAllowOrigin(String allowOrigin) voidsetExposeHeaders(String exposeHeaders) voidsetMaxAge(int maxAge) toString()
-
Constructor Details
-
CorsMatcher
public CorsMatcher()
-
-
Method Details
-
matches
Description copied from interface:MatcherCheck 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
-