/***********************************************************************
 * Copyright (c) 1999-2006 The Apache Software Foundation.             *
 * All rights reserved.                                                *
 * ------------------------------------------------------------------- *
 * Licensed under the Apache License, Version 2.0 (the "License"); you *
 * may not use this file except in compliance with the License. You    *
 * may obtain a copy of the License at:                                *
 *                                                                     *
 *     http://www.apache.org/licenses/LICENSE-2.0                      *
 *                                                                     *
 * Unless required by applicable law or agreed to in writing, software *
 * distributed under the License is distributed on an "AS IS" BASIS,   *
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or     *
 * implied.  See the License for the specific language governing       *
 * permissions and limitations under the License.                      *
 ***********************************************************************/

package org.apache.spf.mechanismn;

import org.apache.spf.IPAddr;
import org.apache.spf.SPF1Data;

public interface GenericMechanismn {
    
    /**
     * Run the mechanismn 
     * @return result
     */
    public int checkMechanismn(IPAddr checkAddress, String domainName, int maskLenght);
    
    /**
     * Init the SPF1Data
     * @param spfData The current SPF1Data container
     */
    public void initSPF1Data(SPF1Data spfData);
}

/***********************************************************************
 * Copyright (c) 1999-2006 The Apache Software Foundation.             *
 * All rights reserved.                                                *
 * ------------------------------------------------------------------- *
 * Licensed under the Apache License, Version 2.0 (the "License"); you *
 * may not use this file except in compliance with the License. You    *
 * may obtain a copy of the License at:                                *
 *                                                                     *
 *     http://www.apache.org/licenses/LICENSE-2.0                      *
 *                                                                     *
 * Unless required by applicable law or agreed to in writing, software *
 * distributed under the License is distributed on an "AS IS" BASIS,   *
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or     *
 * implied.  See the License for the specific language governing       *
 * permissions and limitations under the License.                      *
 ***********************************************************************/

package org.apache.spf.mechanismn;

import org.apache.spf.IPAddr;
import org.apache.spf.SPF1Data;

public interface GenericMechanismn {
    
    /**
     * Run the mechanismn 
     * @return result
     */
    public int run();
    
    /**
     * 
     * @param spfData The SPF1Data
     * @param mechanismPrefix The mechanismPrefix
     * @param checkAddress The ipAddress to check
     * @param domainName The domainName
     * @param maskLenght The maskLength
     */
    public void init(SPF1Data spfData,String mechanismPrefix,IPAddr checkAddress, String domainName, int maskLenght);
}

Change the interface layout to reflect the changes we spoke about in icq