Package org.wildfly.security.auth.client
Class MatchHostRule
- java.lang.Object
-
- org.wildfly.security.auth.client.MatchRule
-
- org.wildfly.security.auth.client.MatchHostRule
-
class MatchHostRule extends MatchRule
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private String
hostSpec
private boolean
suffixMatch
private static Pattern
validHostSpecPattern
-
Constructor Summary
Constructors Constructor Description MatchHostRule(MatchRule parent, String hostSpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) StringBuilder
asString(StringBuilder b)
String
getMatchHost()
Get the host name that this rule matches, ornull
if this rule does not match by host.(package private) boolean
halfEqual(MatchRule other)
int
hashCode()
Get the hash code of this rule.boolean
isHostMatched()
Determine whether this rule matches based on host name.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, getMatchNetwork, getMatchPath, getMatchPort, getMatchProtocol, getMatchUrnName, getMatchUser, isNetworkMatched, isPathMatched, isPortMatched, isProtocolMatched, isTypeAuthorityMatched, isTypeMatched, isUrnNameMatched, isUserMatched, matchAbstractType, matchAddress, matchAnyUser, matches, matchHost, matchLocalSecurityDomain, matchNetwork, matchNoUser, matchPath, matchPort, matchProtocol, matchUrnName, matchUser, parentAsString, parentHalfEqual, parentHashCode, toString, without
-
-
-
-
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.
-
getMatchHost
public String getMatchHost()
Description copied from class:MatchRule
Get the host name that this rule matches, ornull
if this rule does not match by host.- Overrides:
getMatchHost
in classMatchRule
- Returns:
- the host name, or
null
if there is none
-
isHostMatched
public boolean isHostMatched()
Description copied from class:MatchRule
Determine whether this rule matches based on host name.- Overrides:
isHostMatched
in classMatchRule
- Returns:
true
if the rule matches based on host name,false
otherwise
-
hashCode
public int hashCode()
Description copied from class:MatchRule
Get the hash code of this rule.
-
asString
StringBuilder asString(StringBuilder b)
-
-