Package org.wildfly.security.auth.client
Class MatchPortRule
- java.lang.Object
-
- org.wildfly.security.auth.client.MatchRule
-
- org.wildfly.security.auth.client.MatchPortRule
-
class MatchPortRule extends MatchRule
- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description MatchPortRule(MatchRule parent, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) StringBuilder
asString(StringBuilder b)
int
getMatchPort()
Get the port number that this rule matches, or 0 if this rule does not match by port.(package private) boolean
halfEqual(MatchRule other)
int
hashCode()
Get the hash code of this rule.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, getMatchProtocol, getMatchUrnName, getMatchUser, isHostMatched, 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
-
-
-
-
Constructor Detail
-
MatchPortRule
MatchPortRule(MatchRule parent, int port)
-
-
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.
-
getMatchPort
public int getMatchPort()
Description copied from class:MatchRule
Get the port number that this rule matches, or 0 if this rule does not match by port.- Overrides:
getMatchPort
in classMatchRule
- Returns:
- the port number, or 0 if there is none
-
hashCode
public int hashCode()
Description copied from class:MatchRule
Get the hash code of this rule.
-
asString
StringBuilder asString(StringBuilder b)
-
-