Class 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 Detail

      • StrictTransportSecurityMatcher

        public StrictTransportSecurityMatcher()
      • StrictTransportSecurityMatcher

        public StrictTransportSecurityMatcher​(int maxAge)
    • Method Detail

      • matches

        public boolean matches​(WebContext context)
        Description copied from interface: Matcher
        Check if the web context matches.
        Specified by:
        matches in interface Matcher
        Parameters:
        context - the web context
        Returns:
        whether the web context matches
      • getMaxAge

        public int getMaxAge()
      • setMaxAge

        public void setMaxAge​(int maxAge)