Advertisement
Guest User

Untitled

a guest
Jul 30th, 2013
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.09 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- This file was auto-generated from WSDL -->
  3. <!-- by the Apache Axis2 version: 1.4  Built on : Apr 26, 2008 (06:24:30 EDT) -->
  4. <serviceGroup>
  5.     <service name="MyService">
  6.         (some operations here)
  7.         <module ref="rampart" />
  8.         <wsp:Policy wsu:Id="SignEncr" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
  9.           <wsp:ExactlyOne>
  10.             <wsp:All>
  11.               <sp:AsymmetricBinding xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
  12.                 <wsp:Policy>
  13.                   <sp:InitiatorToken>
  14.                     <wsp:Policy>
  15.                       <sp:X509Token sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient"/>
  16.                     </wsp:Policy>
  17.                   </sp:InitiatorToken>
  18.                   <sp:RecipientToken>
  19.                     <wsp:Policy>
  20.                       <sp:X509Token sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never">
  21.                         <wsp:Policy>
  22.                           <sp:RequireThumbprintReference/>
  23.                         </wsp:Policy>
  24.                       </sp:X509Token>
  25.                     </wsp:Policy>
  26.                   </sp:RecipientToken>
  27.                   <sp:AlgorithmSuite>
  28.                     <wsp:Policy>
  29.                       <sp:TripleDesRsa15/>
  30.                     </wsp:Policy>
  31.                   </sp:AlgorithmSuite>
  32.                   <sp:Layout>
  33.                     <wsp:Policy>
  34.                       <sp:Strict/>
  35.                     </wsp:Policy>
  36.                   </sp:Layout>
  37.                   <sp:IncludeTimestamp/>
  38.                   <sp:OnlySignEntireHeadersAndBody/>
  39.                 </wsp:Policy>
  40.               </sp:AsymmetricBinding>
  41.               <sp:SignedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
  42.                 <sp:Body/>
  43.               </sp:SignedParts>
  44.               <sp:EncryptedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
  45.                 <sp:Body/>
  46.               </sp:EncryptedParts>
  47.  
  48.               <ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy">
  49.                 <ramp:user>serverkey</ramp:user>
  50.                 <ramp:encryptionUser>clientkey</ramp:encryptionUser>
  51.                 <ramp:passwordCallbackClass>pl.astepien.war_api.api.PWCBHandler</ramp:passwordCallbackClass>
  52.                
  53.                 <ramp:signatureCrypto>
  54.                   <ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
  55.                     <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
  56.                     <ramp:property name="org.apache.ws.security.crypto.merlin.file">/home/astepien/work/server.keystore</ramp:property>
  57.                     <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">nosecret</ramp:property>
  58.                   </ramp:crypto>
  59.                 </ramp:signatureCrypto>
  60.                
  61.                 <ramp:encryptionCrypto>
  62.                   <ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
  63.                     <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
  64.                     <ramp:property name="org.apache.ws.security.crypto.merlin.file">/home/astepien/work/server.keystore</ramp:property>
  65.                     <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">nosecret</ramp:property>
  66.                   </ramp:crypto>
  67.                 </ramp:encryptionCrypto>
  68.                
  69.               </ramp:RampartConfig>
  70.  
  71.             </wsp:All>
  72.           </wsp:ExactlyOne>
  73.         </wsp:Policy>
  74.     </service>
  75. </serviceGroup>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement