You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by "davidenewsletter@libero.it" <da...@libero.it> on 2006/11/09 14:17:48 UTC

mapping .net ws policies to client wsdd-properties

I've surfed the internet looking for a tutorial on how to invoke a secured .net web service from a java client using WSS4J but till now I haven't successed.
I have the p12 file needed to invoke the web service but I have no idea on how to write the wsdd file for the client, the cripto.properties because the only available examples on the internet are on username token while i need signature + encrypting.

How should I map the info contained in the following .net policies file to the wsdd file?

Thanks in advance.

Davide Palena

<policies 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/2002/12/policy" xmlns:wssp="http://schemas.xmlsoap.org/ws/2002/12/secext " xmlns:wse="http://schemas.microsoft.com/wse/2003/06/Policy" xmlns:wsse=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
    <wsp:Policy wsu:Id="Richiesta">
      <wssp:Integrity wsp:Usage="wsp:Required">
        <wssp:Algorithm Type="wssp:AlgSignature" URI=" http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
        <wssp:TokenInfo>
          <wssp:SecurityToken>
            <wssp:TokenType> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</wssp:TokenType>
            <wssp:TokenIssuer>C=IT, S=MI, L=Segrate, O=CILEA, CN=cacert.cilea.it , E=noc@cilea.it</wssp:TokenIssuer>
            <wssp:Claims>
              <wssp:SubjectName MatchType="wssp:Exact">C=IT, S=MI, L=Segrate, O=CILEA, CN=MetaMotore, E= noc@cilea.it</wssp:SubjectName>
              <wssp:X509Extension OID="2.5.29.14" MatchType="wssp:Exact">CpnvqsNwR07wtZZ27UKWxKRqfTU=</wssp:X509Extension>
            </wssp:Claims>
          </wssp:SecurityToken>
        </wssp:TokenInfo>
        <wssp:MessageParts Dialect="http://schemas.xmlsoap.org/2002/12/wsse#part "> wsp:Body() wsp:Header(wsa:Action) wsp:Header(wsa:From) wsp:Header(wsa:MessageID) wsp:Header(wsa:To) wse:Timestamp() </wssp:MessageParts>
      </wssp:Integrity>
      <wssp:Confidentiality wsp:Usage="wsp:Required">
        <wssp:Algorithm Type="wssp:AlgEncryption" URI="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
        <wssp:KeyInfo>
          <wsse:SecurityTokenReference>
            <wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier ">GGcX/rHNV9O8an0FK6vkviDSpCc=</wsse:KeyIdentifier>
          </wsse:SecurityTokenReference>
        </wssp:KeyInfo>
        <wssp:MessageParts Dialect=" http://schemas.xmlsoap.org/2002/12/wsse#part">wsp:Body()</wssp:MessageParts>
      </wssp:Confidentiality>
    </wsp:Policy>
    <!-- xxx -->
    <wsp:Policy wsu:Id="Risposta">
      <wssp:Integrity wsp:Usage="wsp:Required">
        <wssp:Algorithm Type="wssp:AlgSignature" URI="http://www.w3.org/2000/09/xmldsig#rsa-sha1 " />
        <wssp:TokenInfo>
          <wssp:SecurityToken>
            <wssp:TokenType> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</wssp:TokenType>
            <wssp:TokenIssuer>C=IT, S=MI, L=Segrate, O=CILEA, CN=cacert.cilea.it , E=noc@cilea.it</wssp:TokenIssuer>
            <wssp:Claims>
              <wssp:SubjectName MatchType="wssp:Exact">C=IT, S=MI, L=Segrate, O=CILEA, CN=ServiziFull, E= noc@cilea.it</wssp:SubjectName>
              <wssp:X509Extension OID="2.5.29.14" MatchType="wssp:Exact">GGcX/rHNV9O8an0FK6vkviDSpCc=</wssp:X509Extension>
            </wssp:Claims>
          </wssp:SecurityToken>
        </wssp:TokenInfo>
        <wssp:MessageParts Dialect="http://schemas.xmlsoap.org/2002/12/wsse#part "> wsp:Body() wsp:Header(wsa:Action) wsp:Header(wsa:From) wsp:Header(wsa:MessageID) wsp:Header(wsa:To) wse:Timestamp() </wssp:MessageParts>
      </wssp:Integrity>
      <wssp:Confidentiality wsp:Usage="wsp:Required">
        <wssp:Algorithm Type="wssp:AlgEncryption" URI="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
        <wssp:KeyInfo>
          <wsse:SecurityTokenReference>
            <wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier ">CpnvqsNwR07wtZZ27UKWxKRqfTU=</wsse:KeyIdentifier>
          </wsse:SecurityTokenReference>
        </wssp:KeyInfo>
        <wssp:MessageParts Dialect=" http://schemas.xmlsoap.org/2002/12/wsse#part">wsp:Body()</wssp:MessageParts>
      </wssp:Confidentiality>
    </wsp:Policy>


------------------------------------------------------
Nuovo MOTOROLA MOTOKRZR K1. Superficie a specchio, fotocamera da 2 Megapixel e lettore MP3 integrato.Clicca e vinci !
http://click.libero.it/motorola9nov



---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org