org.apache.rahas.impl
Class SAMLTokenValidator

java.lang.Object
  extended by org.apache.rahas.impl.SAMLTokenValidator
All Implemented Interfaces:
TokenValidator

public class SAMLTokenValidator
extends java.lang.Object
implements TokenValidator

Implementation of a SAML Token Validator for the Security Token Service.


Constructor Summary
SAMLTokenValidator()
           
 
Method Summary
 void setConfigurationElement(org.apache.axiom.om.OMElement configElement)
          Set the configuration element of this TokenValidator.
 void setConfigurationFile(java.lang.String configFile)
          Set the configuration file of this TokenValidator.
 void setConfigurationParamName(java.lang.String configParamName)
          Set the name of the configuration parameter.
 org.apache.axiom.soap.SOAPEnvelope validate(RahasData data)
          Returns a SOAPEnvelope with the result of the validation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLTokenValidator

public SAMLTokenValidator()
Method Detail

validate

public org.apache.axiom.soap.SOAPEnvelope validate(RahasData data)
                                            throws TrustException
Returns a SOAPEnvelope with the result of the validation.

Specified by:
validate in interface TokenValidator
Parameters:
data - the RahasData object, containing information about the request.
Returns:
Response SOAPEnveloper
Throws:
TrustException

setConfigurationFile

public void setConfigurationFile(java.lang.String configFile)
Set the configuration file of this TokenValidator.

This is the text value of the <configuration-file> element of the token-dispatcher-configuration

Specified by:
setConfigurationFile in interface TokenValidator
Parameters:
configFile -

setConfigurationParamName

public void setConfigurationParamName(java.lang.String configParamName)
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 TokenValidator is called.

Specified by:
setConfigurationParamName in interface TokenValidator
Parameters:
configParamName -
See Also:
Parameter

setConfigurationElement

public void setConfigurationElement(org.apache.axiom.om.OMElement configElement)
Description copied from interface: TokenValidator
Set the configuration element of this TokenValidator. This is the <configuration> element of the token-dispatcher-configuration

Specified by:
setConfigurationElement in interface TokenValidator
Parameters:
configElement - OMElement representing the configuration