<module name="rahas">
    <Description>This module is used to STS enable a service where it adds
        the RequestSecurityToken operation to a service that the module is engaged to</Description>

    <supported-policy-namespaces namespaces="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"/>
    
    <operation name="RequestSecurityToken" mep="http://www.w3.org/2004/08/wsdl/in-out">
        <messageReceiver class="org.apache.rahas.STSMessageReceiver"/>

		<!-- Action mapping to accept SCT requests -->
		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT</actionMapping>

		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue</actionMapping>
		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Renew</actionMapping>
		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Cancel</actionMapping>
		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT/Cancel</actionMapping>
		<actionMapping>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Validate</actionMapping>

		<parameter name="token-dispatcher-configuration">
			<token-dispatcher-configuration>
                <!-- Issuers. You may have many issuers. -->
                <issuer class="org.apache.rahas.impl.SCTIssuer" default="true">
					<configuration type="parameter">sct-issuer-config</configuration>
					<tokenType>http://schemas.xmlsoap.org/ws/2005/02/sc/sct</tokenType>
				</issuer>
				<issuer class="org.apache.rahas.impl.SAMLTokenIssuer">
					<configuration type="parameter">saml-issuer-config</configuration>
					<tokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</tokenType>
				</issuer>

                <!-- Only a single canceler is allowed -->
                <canceler class="org.apache.rahas.impl.TokenCancelerImpl">
					<configuration type="parameter">token-canceler-config</configuration>
				</canceler>

            </token-dispatcher-configuration>
		</parameter>

     </operation>

</module>
