<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
	wsu:Id="SigEncr">
	<wsp:ExactlyOne>
		<wsp:All>
			<sp:AsymmetricBinding
				xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
				<wsp:Policy>
					<sp:InitiatorToken>
						<wsp:Policy>
							<sp:X509Token
								sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
								<wsp:Policy>
									<sp:RequireThumbprintReference />
									<sp:WssX509V3Token10 />
								</wsp:Policy>
							</sp:X509Token>
						</wsp:Policy>
					</sp:InitiatorToken>
					<sp:RecipientToken>
						<wsp:Policy>
							<sp:X509Token
								sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
								<wsp:Policy>
									<sp:RequireThumbprintReference />
									<sp:WssX509V3Token10 />
								</wsp:Policy>
							</sp:X509Token>
						</wsp:Policy>
					</sp:RecipientToken>
					<sp:AlgorithmSuite>
						<wsp:Policy>
							<sp:Basic256 />
						</wsp:Policy>
					</sp:AlgorithmSuite>
					<sp:Layout>
						<wsp:Policy>
							<sp:Strict />
						</wsp:Policy>
					</sp:Layout>
					<sp:IncludeTimestamp />
					<sp:OnlySignEntireHeadersAndBody />
				</wsp:Policy>
			</sp:AsymmetricBinding>
			<sp:SupportingTokens
				xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
				<wsp:Policy>
					<sp:IssuedToken
						sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
						<Issuer xmlns="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
							<Address xmlns="http://www.w3.org/2005/08/addressing">
								https://localhost:9443/services/wso2carbon-sts
							</Address>
						</Issuer>
						<sp:RequestSecurityTokenTemplate
							xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust">
							<t:TokenType>urn:oasis:names:tc:SAML:1.0:assertion</t:TokenType>
							<t:KeyType>http://schemas.xmlsoap.org/ws/2005/02/trust/SymmetricKey</t:KeyType>
							<t:KeySize>256</t:KeySize>
							<t:Claims Dialect="http://wso2.org/claims"
								xmlns:ic="http://schemas.xmlsoap.org/ws/2005/05/identity">
								<ic:ClaimType Uri="First Name" />
							</t:Claims>
						</sp:RequestSecurityTokenTemplate>
						<wsp:Policy>
							<sp:RequireInternalReference />
						</wsp:Policy>
					</sp:IssuedToken>
				</wsp:Policy>
			</sp:SupportingTokens>
			<sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
				<sp:Policy>
					<sp:MustSupportRefKeyIdentifier />
					<sp:MustSupportRefIssuerSerial />
					<sp:MustSupportRefThumbprint />
					<sp:RequireSignatureConfirmation />
				</sp:Policy>
			</sp:Wss11>
			<sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
				<sp:Policy>
					<sp:MustSupportRefKeyIdentifier />
					<sp:MustSupportRefIssuerSerial />
				</sp:Policy>
			</sp:Wss10>
			<sp:SignedParts
				xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
				<sp:Body />
			</sp:SignedParts>
			<sp:EncryptedParts
				xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
				<sp:Body />
			</sp:EncryptedParts>
			<rampart:RampartConfig xmlns:rampart="http://ws.apache.org/rampart/policy">
				<rampart:user>wso2carbon</rampart:user>
				<rampart:encryptionUser>useReqSigCert
				</rampart:encryptionUser>
				<rampart:timestampPrecisionInMilliseconds>true
				</rampart:timestampPrecisionInMilliseconds>
				<rampart:timestampTTL>300</rampart:timestampTTL>
				<rampart:timestampMaxSkew>300</rampart:timestampMaxSkew>
				<rampart:tokenStoreClass>
					org.wso2.carbon.security.util.SecurityTokenStore
				</rampart:tokenStoreClass>
				<rampart:encryptionCrypto>
					<rampart:crypto provider="org.wso2.carbon.security.util.ServerCrypto">
						<rampart:property name="org.wso2.carbon.security.crypto.alias">wso2carbon
						</rampart:property>
						<rampart:property name="org.wso2.carbon.security.crypto.privatestore">wso2carbon.jks
						</rampart:property>
						<rampart:property name="org.wso2.carbon.security.crypto.truststores">wso2carbon.jks,
						</rampart:property>
						<rampart:property name="rampart.config.user">wso2carbon
						</rampart:property>
					</rampart:crypto>
				</rampart:encryptionCrypto>
				<rampart:signatureCrypto>
					<rampart:crypto provider="org.wso2.carbon.security.util.ServerCrypto">
						<rampart:property name="org.wso2.carbon.security.crypto.alias">wso2carbon
						</rampart:property>
						<rampart:property name="org.wso2.carbon.security.crypto.privatestore">wso2carbon.jks
						</rampart:property>
						<rampart:property name="org.wso2.carbon.security.crypto.truststores">wso2carbon.jks,
						</rampart:property>
						<rampart:property name="rampart.config.user">wso2carbon
						</rampart:property>
					</rampart:crypto>
				</rampart:signatureCrypto>
			</rampart:RampartConfig>
		</wsp:All>
	</wsp:ExactlyOne>
</wsp:Policy>
