Package org.apache.james.jspf.terms
Class IP6Mechanism
java.lang.Object
org.apache.james.jspf.terms.GenericMechanism
org.apache.james.jspf.terms.IP4Mechanism
org.apache.james.jspf.terms.IP6Mechanism
- All Implemented Interfaces:
MacroExpandEnabled,SPFChecker,ConfigurationEnabled,Mechanism
This class represent the ip6 mechanism
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringABNF: IP6 = "ip6" ":" ip6-network [ ip6-cidr-length ]Fields inherited from class org.apache.james.jspf.terms.GenericMechanism
DUAL_CIDR_LENGTH_REGEX, IP4_CIDR_LENGTH_REGEX, IP6_CIDR_LENGTH_REGEX, macroExpand -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intReturns the max cidr for ip4protected booleanisValidAddress(String ipString) toString()Methods inherited from class org.apache.james.jspf.terms.IP4Mechanism
checkSPF, config, getIpMethods inherited from class org.apache.james.jspf.terms.GenericMechanism
enableMacroExpand, expandHost, getDomain
-
Field Details
-
REGEX
ABNF: IP6 = "ip6" ":" ip6-network [ ip6-cidr-length ]- See Also:
-
-
Constructor Details
-
IP6Mechanism
public IP6Mechanism()
-
-
Method Details
-
isValidAddress
- Overrides:
isValidAddressin classIP4Mechanism- See Also:
-
getMaxCidr
protected int getMaxCidr()Description copied from class:IP4MechanismReturns the max cidr for ip4- Overrides:
getMaxCidrin classIP4Mechanism- Returns:
- maxCidr The max cidr
- See Also:
-
toString
- Overrides:
toStringin classIP4Mechanism- See Also:
-