Class StrictTransportSecurityMatcher

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

public class StrictTransportSecurityMatcher extends Object implements Matcher
Strict transport security header matcher.
Since:
4.0.0
Author:
Jerome Leleu
  • Constructor Details

    • StrictTransportSecurityMatcher

      public StrictTransportSecurityMatcher()
    • StrictTransportSecurityMatcher

      public StrictTransportSecurityMatcher(int maxAge)
  • 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
    • getMaxAge

      public int getMaxAge()
    • setMaxAge

      public void setMaxAge(int maxAge)
    • toString

      public String toString()
      Overrides:
      toString in class Object