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 String
ABNF: 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 int
Returns the max cidr for ip4protected boolean
isValidAddress
(String ipString) toString()
Methods inherited from class org.apache.james.jspf.terms.IP4Mechanism
checkSPF, config, getIp
Methods 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:
isValidAddress
in classIP4Mechanism
- See Also:
-
getMaxCidr
protected int getMaxCidr()Description copied from class:IP4Mechanism
Returns the max cidr for ip4- Overrides:
getMaxCidr
in classIP4Mechanism
- Returns:
- maxCidr The max cidr
- See Also:
-
toString
- Overrides:
toString
in classIP4Mechanism
- See Also:
-