Advertisement
gusto2

Basic UT WS-Policy for WSO2 ESB

Nov 8th, 2016
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.38 KB | None | 0 0
  1. <wsp:Policy wsu:Id="UTOverTransport"
  2.    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">
  3.     <wsp:ExactlyOne>
  4.         <wsp:All>
  5.             <sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
  6.                 <wsp:Policy>
  7.                     <sp:TransportToken>
  8.                         <wsp:Policy>
  9.                             <sp:HttpsToken RequireClientCertificate="false"/>
  10.                         </wsp:Policy>
  11.                     </sp:TransportToken>
  12.                     <sp:AlgorithmSuite>
  13.                         <wsp:Policy>
  14.                             <sp:Basic256/>
  15.                         </wsp:Policy>
  16.                     </sp:AlgorithmSuite>
  17.                     <sp:Layout>
  18.                         <wsp:Policy>
  19.                             <sp:Lax/>
  20.                         </wsp:Policy>
  21.                     </sp:Layout>
  22.                 </wsp:Policy>
  23.             </sp:TransportBinding>
  24.             <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
  25.                 <wsp:Policy>
  26.                     <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"/>
  27.                 </wsp:Policy>
  28.             </sp:SignedSupportingTokens>
  29.         </wsp:All>
  30.     </wsp:ExactlyOne>
  31.     <rampart:RampartConfig xmlns:rampart="http://ws.apache.org/rampart/policy">
  32.         <rampart:user>wso2carbon</rampart:user>
  33.         <rampart:encryptionUser>useReqSigCert</rampart:encryptionUser>
  34.         <rampart:timestampPrecisionInMilliseconds>true</rampart:timestampPrecisionInMilliseconds>
  35.         <rampart:timestampTTL>300</rampart:timestampTTL>
  36.         <rampart:timestampMaxSkew>300</rampart:timestampMaxSkew>
  37.         <rampart:timestampStrict>false</rampart:timestampStrict>
  38.         <rampart:tokenStoreClass>org.wso2.carbon.security.util.SecurityTokenStore</rampart:tokenStoreClass>
  39.         <rampart:nonceLifeTime>300</rampart:nonceLifeTime>
  40.     </rampart:RampartConfig>
  41.     <sec:CarbonSecConfig xmlns:sec="http://www.wso2.org/products/carbon/security">
  42.         <sec:Authorization>
  43.             <sec:property name="org.wso2.carbon.security.allowedroles">Internal/everyone</sec:property>
  44.         </sec:Authorization>
  45.     </sec:CarbonSecConfig>
  46. </wsp:Policy>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement