Package org.wildfly.security.auth.client
Class MatchNetworkRule
- java.lang.Object
-
- org.wildfly.security.auth.client.MatchRule
-
- org.wildfly.security.auth.client.MatchNetworkRule
-
class MatchNetworkRule extends MatchRule
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private org.wildfly.common.net.CidrAddresscidrAddress
-
Constructor Summary
Constructors Constructor Description MatchNetworkRule(MatchRule parent, org.wildfly.common.net.CidrAddress cidrAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) StringBuilderasString(StringBuilder b)org.wildfly.common.net.CidrAddressgetMatchNetwork()Get the network that this rule matches, ornullif this rule does not match by network.(package private) booleanhalfEqual(MatchRule other)inthashCode()Get the hash code of this rule.booleanisNetworkMatched()Determine whether this rule matches based on network.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, getMatchPath, getMatchPort, getMatchProtocol, getMatchUrnName, getMatchUser, isHostMatched, 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
-
MatchNetworkRule
MatchNetworkRule(MatchRule parent, org.wildfly.common.net.CidrAddress cidrAddress)
-
-
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.
-
isNetworkMatched
public boolean isNetworkMatched()
Description copied from class:MatchRuleDetermine whether this rule matches based on network.- Overrides:
isNetworkMatchedin classMatchRule- Returns:
trueif the rule matches based on network,falseotherwise
-
getMatchNetwork
public org.wildfly.common.net.CidrAddress getMatchNetwork()
Description copied from class:MatchRuleGet the network that this rule matches, ornullif this rule does not match by network.- Overrides:
getMatchNetworkin classMatchRule- Returns:
- the network that this rule matches, or
nullif there is none
-
hashCode
public int hashCode()
Description copied from class:MatchRuleGet the hash code of this rule.
-
asString
StringBuilder asString(StringBuilder b)
-
-