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) StringBuilderasString(StringBuilder b)intgetMatchPort()Get the port number that this rule matches, or 0 if this rule does not match by port.(package private) booleanhalfEqual(MatchRule other)inthashCode()Get the hash code of this rule.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, 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:MatchRuleDetermine if this rule matches the given URI, and type.
-
getMatchPort
public int getMatchPort()
Description copied from class:MatchRuleGet the port number that this rule matches, or 0 if this rule does not match by port.- Overrides:
getMatchPortin classMatchRule- Returns:
- the port number, or 0 if there is none
-
hashCode
public int hashCode()
Description copied from class:MatchRuleGet the hash code of this rule.
-
asString
StringBuilder asString(StringBuilder b)
-
-