All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.rahas.TokenValidator Maven / Gradle / Ivy

There is a newer version: 1.7.1
Show newest version
/*
 * Copyright 2004,2005 The Apache Software Foundation.
 *
 * 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.rahas;

import org.apache.axiom.om.OMElement;
import org.apache.axiom.soap.SOAPEnvelope;

public interface TokenValidator {

    /**
     * Validate the token specified in the given request.
     * 
     * @param data
     *                A populated RahasData instance
     * @return Response SOAPEnveloper
     * @throws TrustException
     */
    public SOAPEnvelope validate(RahasData data) throws TrustException;

    /**
     * Set the configuration file of this TokenValidator.
     * 
     * This is the text value of the <configuration-file> element of the
     * token-dispatcher-configuration
     * 
     * @param configFile
     */
    public void setConfigurationFile(String configFile);

    /**
     * Set the configuration element of this TokenValidator.
     * 
     * This is the <configuration> element of the
     * token-dispatcher-configuration
     * 
     * @param configElement
     *                OMElement representing the configuration
     */
    public void setConfigurationElement(OMElement configElement);

    /**
     * Set the name of the configuration parameter.
     * 
     * If this is used then there must be a
     * org.apache.axis2.description.Parameter object available in
     * the via the messageContext when the TokenIssuer is called.
     * 
     * @see org.apache.axis2.description.Parameter
     * @param configParamName
     */
    public void setConfigurationParamName(String configParamName);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy