Class CorsMatcher

java.lang.Object
org.pac4j.core.matching.matcher.CorsMatcher
All Implemented Interfaces:
Matcher

public class CorsMatcher extends Object implements Matcher
Define how the CORS requests are authorized.
Since:
4.0.0
Author:
Jerome Leleu
  • Constructor Details

    • CorsMatcher

      public CorsMatcher()
  • Method Details

    • matches

      public boolean matches(WebContext context, SessionStore sessionStore)
      Description copied from interface: Matcher
      Check if the web context matches.
      Specified by:
      matches in interface Matcher
      Parameters:
      context - the web context
      sessionStore - the session store
      Returns:
      whether the web context matches
    • getAllowOrigin

      public String getAllowOrigin()
    • setAllowOrigin

      public void setAllowOrigin(String allowOrigin)
    • getExposeHeaders

      public String getExposeHeaders()
    • setExposeHeaders

      public void setExposeHeaders(String exposeHeaders)
    • getMaxAge

      public int getMaxAge()
    • setMaxAge

      public void setMaxAge(int maxAge)
    • getAllowCredentials

      public Boolean getAllowCredentials()
    • setAllowCredentials

      public void setAllowCredentials(Boolean allowCredentials)
    • getAllowMethods

      public Set<HttpConstants.HTTP_METHOD> getAllowMethods()
    • setAllowMethods

      public void setAllowMethods(Set<HttpConstants.HTTP_METHOD> allowMethods)
    • getAllowHeaders

      public String getAllowHeaders()
    • setAllowHeaders

      public void setAllowHeaders(String allowHeaders)
    • toString

      public String toString()
      Overrides:
      toString in class Object