Package org.wildfly.security.auth.client
Class MatchUserRule
- java.lang.Object
-
- org.wildfly.security.auth.client.MatchRule
-
- org.wildfly.security.auth.client.MatchUserRule
-
class MatchUserRule extends MatchRule
- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description MatchUserRule(MatchRule parent, String userSpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) StringBuilderasString(StringBuilder b)StringgetMatchUser()Get the URI user info that this rule matches, ornullif this rule only matches empty URI user info.(package private) booleanhalfEqual(MatchRule other)inthashCode()Get the hash code of this rule.booleanisUserMatched()Determine whether this rule matches based on non-empty URI user info.booleanmatches(URI uri, String abstractType, String abstractTypeAuthority)Determine if this rule matches the given URI, and type.(package private) MatchRulereparent(MatchRule newParent)-
Methods inherited from class org.wildfly.security.auth.client.MatchRule
equals, equals, getMatchAbstractType, getMatchAbstractTypeAuthority, getMatchHost, getMatchNetwork, getMatchPath, getMatchPort, getMatchProtocol, getMatchUrnName, isHostMatched, isNetworkMatched, isPathMatched, isPortMatched, isProtocolMatched, isTypeAuthorityMatched, isTypeMatched, isUrnNameMatched, matchAbstractType, matchAddress, matchAnyUser, matches, matchHost, matchLocalSecurityDomain, matchNetwork, matchNoUser, matchPath, matchPort, matchProtocol, matchUrnName, matchUser, parentAsString, parentHalfEqual, parentHashCode, toString, without
-
-
-
-
Field Detail
-
userSpec
private final String userSpec
-
-
Method Detail
-
matches
public boolean matches(URI uri, String abstractType, String abstractTypeAuthority)
Description copied from class:MatchRuleDetermine if this rule matches the given URI, and type.
-
getMatchUser
public String getMatchUser()
Description copied from class:MatchRuleGet the URI user info that this rule matches, ornullif this rule only matches empty URI user info.- Overrides:
getMatchUserin classMatchRule- Returns:
- the user info, or
nullif there is none
-
isUserMatched
public boolean isUserMatched()
Description copied from class:MatchRuleDetermine whether this rule matches based on non-empty URI user info.- Overrides:
isUserMatchedin classMatchRule- Returns:
trueif the rule matches based on non-empty user info,falseotherwise
-
hashCode
public int hashCode()
Description copied from class:MatchRuleGet the hash code of this rule.
-
asString
StringBuilder asString(StringBuilder b)
-
-