Class Rules.request.authType
java.lang.Object
com.aoapps.servlet.firewall.rules.Rules.request.authType
- Enclosing class:
Rules.request
See
HttpServletRequest.getAuthType()
.
TODO: Support nulls or a method for noAuthType?
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Matcher
MatchesHttpServletRequest.BASIC_AUTH
.static final Matcher
MatchesHttpServletRequest.CLIENT_CERT_AUTH
.static final Matcher
MatchesHttpServletRequest.DIGEST_AUTH
.static final Matcher
MatchesHttpServletRequest.FORM_AUTH
. -
Method Summary
Modifier and TypeMethodDescriptionstatic Matcher
Matches any of a given iterable ofHttpServletRequest.getAuthType()
.static Matcher
Matches any of a given iterable ofHttpServletRequest.getAuthType()
.static Matcher
Matches any of a given iterable ofHttpServletRequest.getAuthType()
.static Matcher
Matches any of a given iterable ofHttpServletRequest.getAuthType()
.static Matcher
in
(Iterable<? extends String> authTypes, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches any of a given iterable ofHttpServletRequest.getAuthType()
.static Matcher
Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
in
(Collection<? extends String> authTypes) Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
in
(Collection<? extends String> authTypes, Rule... rules) Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
in
(Collection<? extends String> authTypes, Rule[] rules, Rule... otherwise) Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
in
(Collection<? extends String> authTypes, Iterable<? extends Rule> rules) Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
in
(Collection<? extends String> authTypes, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches any of a given set ofHttpServletRequest.getAuthType()
.static Matcher
Matches one givenHttpServletRequest.getAuthType()
.static Matcher
Matches one givenHttpServletRequest.getAuthType()
.static Matcher
Matches one givenHttpServletRequest.getAuthType()
.static Matcher
Matches one givenHttpServletRequest.getAuthType()
.static Matcher
Matches one givenHttpServletRequest.getAuthType()
.static Matcher
MatchesHttpServletRequest.BASIC_AUTH
.static Matcher
MatchesHttpServletRequest.BASIC_AUTH
.static Matcher
MatchesHttpServletRequest.BASIC_AUTH
.static Matcher
MatchesHttpServletRequest.BASIC_AUTH
.static Matcher
isClientCert
(Rule... rules) MatchesHttpServletRequest.CLIENT_CERT_AUTH
.static Matcher
isClientCert
(Rule[] rules, Rule... otherwise) MatchesHttpServletRequest.CLIENT_CERT_AUTH
.static Matcher
isClientCert
(Iterable<? extends Rule> rules) MatchesHttpServletRequest.CLIENT_CERT_AUTH
.static Matcher
isClientCert
(Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) MatchesHttpServletRequest.CLIENT_CERT_AUTH
.static Matcher
MatchesHttpServletRequest.DIGEST_AUTH
.static Matcher
MatchesHttpServletRequest.DIGEST_AUTH
.static Matcher
MatchesHttpServletRequest.DIGEST_AUTH
.static Matcher
MatchesHttpServletRequest.DIGEST_AUTH
.static Matcher
MatchesHttpServletRequest.FORM_AUTH
.static Matcher
MatchesHttpServletRequest.FORM_AUTH
.static Matcher
MatchesHttpServletRequest.FORM_AUTH
.static Matcher
MatchesHttpServletRequest.FORM_AUTH
.
-
Field Details
-
isBasic
MatchesHttpServletRequest.BASIC_AUTH
. -
isForm
MatchesHttpServletRequest.FORM_AUTH
. -
isClientCert
MatchesHttpServletRequest.CLIENT_CERT_AUTH
. -
isDigest
MatchesHttpServletRequest.DIGEST_AUTH
.
-
-
Method Details
-
is
Matches one givenHttpServletRequest.getAuthType()
. -
is
Matches one givenHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.
-
is
public static Matcher is(String authType, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches one givenHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
is
Matches one givenHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.
-
is
Matches one givenHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
in
Matches any of a given iterable ofHttpServletRequest.getAuthType()
. -
in
Matches any of a given set ofHttpServletRequest.getAuthType()
. -
in
Matches any of a given set ofHttpServletRequest.getAuthType()
. -
in
Matches any of a given iterable ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.
-
in
public static Matcher in(Iterable<? extends String> authTypes, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches any of a given iterable ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
in
Matches any of a given set ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.
-
in
public static Matcher in(Collection<? extends String> authTypes, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches any of a given set ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
in
Matches any of a given set ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.
-
in
public static Matcher in(String[] authTypes, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches any of a given set ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
in
Matches any of a given iterable ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.
-
in
Matches any of a given iterable ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
in
Matches any of a given set ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.
-
in
Matches any of a given set ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
in
Matches any of a given set ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.
-
in
Matches any of a given set ofHttpServletRequest.getAuthType()
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
isBasic
MatchesHttpServletRequest.BASIC_AUTH
.- Parameters:
rules
- Invoked only when matched.
-
isBasic
MatchesHttpServletRequest.BASIC_AUTH
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
isBasic
MatchesHttpServletRequest.BASIC_AUTH
.- Parameters:
rules
- Invoked only when matched.
-
isBasic
MatchesHttpServletRequest.BASIC_AUTH
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
isForm
MatchesHttpServletRequest.FORM_AUTH
.- Parameters:
rules
- Invoked only when matched.
-
isForm
MatchesHttpServletRequest.FORM_AUTH
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
isForm
MatchesHttpServletRequest.FORM_AUTH
.- Parameters:
rules
- Invoked only when matched.
-
isForm
MatchesHttpServletRequest.FORM_AUTH
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
isClientCert
MatchesHttpServletRequest.CLIENT_CERT_AUTH
.- Parameters:
rules
- Invoked only when matched.
-
isClientCert
public static Matcher isClientCert(Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) MatchesHttpServletRequest.CLIENT_CERT_AUTH
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
isClientCert
MatchesHttpServletRequest.CLIENT_CERT_AUTH
.- Parameters:
rules
- Invoked only when matched.
-
isClientCert
MatchesHttpServletRequest.CLIENT_CERT_AUTH
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
isDigest
MatchesHttpServletRequest.DIGEST_AUTH
.- Parameters:
rules
- Invoked only when matched.
-
isDigest
MatchesHttpServletRequest.DIGEST_AUTH
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-
isDigest
MatchesHttpServletRequest.DIGEST_AUTH
.- Parameters:
rules
- Invoked only when matched.
-
isDigest
MatchesHttpServletRequest.DIGEST_AUTH
.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.
-