public class IP4Mechanism extends GenericMechanism
| Modifier and Type | Field and Description |
|---|---|
static String |
REGEX
ABNF: IP4 = "ip4" ":" ip4-network [ ip4-cidr-length ]
|
DUAL_CIDR_LENGTH_REGEX, IP4_CIDR_LENGTH_REGEX, IP6_CIDR_LENGTH_REGEX, log, macroExpand| Constructor and Description |
|---|
IP4Mechanism() |
| Modifier and Type | Method and Description |
|---|---|
DNSLookupContinuation |
checkSPF(SPFSession spfData)
Run check for SPF with the given values.
|
void |
config(Configuration params)
Configuration
|
protected IPAddr |
getIp() |
protected int |
getMaxCidr()
Returns the max cidr for ip4
|
protected boolean |
isValidAddress(String ipString) |
String |
toString() |
enableLogging, enableMacroExpand, expandHost, getDomainpublic static final String REGEX
public DNSLookupContinuation checkSPF(SPFSession spfData) throws PermErrorException
SPFCheckerspfData - The SPF1Data which should be used to run the checkPermErrorException - Get thrown if an error was detectedSPFChecker.checkSPF(org.apache.james.jspf.core.SPFSession)public void config(Configuration params) throws PermErrorException
ConfigurationEnabledconfig in interface ConfigurationEnabledconfig in class GenericMechanismparams - the ConfigurationMatch which should usedPermErrorException - get thrown if a PermError should returnedGenericMechanism.config(org.apache.james.jspf.terms.Configuration)protected boolean isValidAddress(String ipString)
Inet6Util.isValidIPV4Address(String)protected int getMaxCidr()
protected IPAddr getIp()
public String toString()
toString in class ObjectObject.toString()Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.