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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setConfigurationElement
(org.apache.axiom.om.OMElement configElement) Set the configuration element of this TokenValidator.void
setConfigurationFile
(String configFile) Set the configuration file of this TokenValidator.void
setConfigurationParamName
(String configParamName) Set the name of the configuration parameter.org.apache.axiom.soap.SOAPEnvelope
Returns 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:
validate
in 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:
setConfigurationFile
in 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.Parameter
object available in the via the messageContext when theTokenValidator
is called.- Specified by:
setConfigurationParamName
in interfaceTokenValidator
- Parameters:
configParamName
- Parameter name.- 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 interfaceTokenValidator
- Parameters:
configElement
-OMElement
representing the configuration
-