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.CidrAddress
cidrAddress
-
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) StringBuilder
asString(StringBuilder b)
org.wildfly.common.net.CidrAddress
getMatchNetwork()
Get the network that this rule matches, ornull
if this rule does not match by network.(package private) boolean
halfEqual(MatchRule other)
int
hashCode()
Get the hash code of this rule.boolean
isNetworkMatched()
Determine whether this rule matches based on network.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, 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:MatchRule
Determine if this rule matches the given URI, and type.
-
isNetworkMatched
public boolean isNetworkMatched()
Description copied from class:MatchRule
Determine whether this rule matches based on network.- Overrides:
isNetworkMatched
in classMatchRule
- Returns:
true
if the rule matches based on network,false
otherwise
-
getMatchNetwork
public org.wildfly.common.net.CidrAddress getMatchNetwork()
Description copied from class:MatchRule
Get the network that this rule matches, ornull
if this rule does not match by network.- Overrides:
getMatchNetwork
in classMatchRule
- Returns:
- the network that this rule matches, or
null
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)
-
-