Class SAMLTokenValidator

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

public class SAMLTokenValidator extends Object implements TokenValidator
Implementation of a SAML Token Validator for the Security Token Service.
  • Constructor Details

    • SAMLTokenValidator

      public SAMLTokenValidator()
  • Method Details

    • 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(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 - configuration file to be used.
    • setConfigurationParamName

      public void setConfigurationParamName(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 - 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 interface TokenValidator
      Parameters:
      configElement - OMElement representing the configuration