Package org.apache.rahas.impl
Class SAMLTokenValidator
java.lang.Object
org.apache.rahas.impl.SAMLTokenValidator
- All Implemented Interfaces:
TokenValidator
Implementation of a SAML Token Validator for the Security Token Service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetConfigurationElement(org.apache.axiom.om.OMElement configElement) Set the configuration element of this TokenValidator.voidsetConfigurationFile(String configFile) Set the configuration file of this TokenValidator.voidsetConfigurationParamName(String configParamName) Set the name of the configuration parameter.org.apache.axiom.soap.SOAPEnvelopeReturns a SOAPEnvelope with the result of the validation.
-
Constructor Details
-
SAMLTokenValidator
public SAMLTokenValidator()
-
-
Method Details
-
validate
Returns a SOAPEnvelope with the result of the validation.- Specified by:
validatein interfaceTokenValidator- Parameters:
data- the RahasData object, containing information about the request.- Returns:
- Response SOAPEnveloper
- Throws:
TrustException
-
setConfigurationFile
Set the configuration file of this TokenValidator.This is the text value of the <configuration-file> element of the token-dispatcher-configuration
- Specified by:
setConfigurationFilein interfaceTokenValidator- Parameters:
configFile- configuration file to be used.
-
setConfigurationParamName
Set the name of the configuration parameter.If this is used then there must be a
org.apache.axis2.description.Parameterobject available in the via the messageContext when theTokenValidatoris called.- Specified by:
setConfigurationParamNamein interfaceTokenValidator- Parameters:
configParamName- Parameter name.- See Also:
-
Parameter
-
setConfigurationElement
public void setConfigurationElement(org.apache.axiom.om.OMElement configElement) Description copied from interface:TokenValidatorSet the configuration element of this TokenValidator. This is the <configuration> element of the token-dispatcher-configuration- Specified by:
setConfigurationElementin interfaceTokenValidator- Parameters:
configElement-OMElementrepresenting the configuration
-