Package com.hsbc.cranker.mucranker
Interface IPValidator
-
public interface IPValidatorA validator that can be used to secure registration requests.An IPValidator is registered when constructing the router, via
CrankerRouterBuilder.withRegistrationIpValidator(IPValidator)
-
-
Field Summary
Fields Modifier and Type Field Description static IPValidatorAllowAllA validator that allows all IP addresses to connect
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallow(String ip)Called when a connector attempts to register a route to this router.
-
-
-
Field Detail
-
AllowAll
static final IPValidator AllowAll
A validator that allows all IP addresses to connect
-
-
Method Detail
-
allow
boolean allow(String ip)
Called when a connector attempts to register a route to this router.- Parameters:
ip- The IP address of the connector client- Returns:
trueif this IP address is allowed to register routers; otherwisefalse
-
-