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) StringBuilder
asString(StringBuilder b)
String
getMatchUser()
Get the URI user info that this rule matches, ornull
if this rule only matches empty URI user info.(package private) boolean
halfEqual(MatchRule other)
int
hashCode()
Get the hash code of this rule.boolean
isUserMatched()
Determine whether this rule matches based on non-empty URI user info.boolean
matches(URI uri, String abstractType, String abstractTypeAuthority)
Determine if this rule matches the given URI, and type.(package private) MatchRule
reparent(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:MatchRule
Determine if this rule matches the given URI, and type.
-
getMatchUser
public String getMatchUser()
Description copied from class:MatchRule
Get the URI user info that this rule matches, ornull
if this rule only matches empty URI user info.- Overrides:
getMatchUser
in classMatchRule
- Returns:
- the user info, or
null
if there is none
-
isUserMatched
public boolean isUserMatched()
Description copied from class:MatchRule
Determine whether this rule matches based on non-empty URI user info.- Overrides:
isUserMatched
in classMatchRule
- Returns:
true
if the rule matches based on non-empty user info,false
otherwise
-
hashCode
public int hashCode()
Description copied from class:MatchRule
Get the hash code of this rule.
-
asString
StringBuilder asString(StringBuilder b)
-
-