[jboss-user] [JBossWS] - Re: Ws-Security, Encryption, .Net -> JBoss interoperability

kristof.taveirne do-not-reply at jboss.com
Fri Oct 6 06:23:59 EDT 2006


ooh
and this is the xml that's going over the wire from the client to the server:

  | <?xml version="1.0" encoding="utf-8"?>
  | <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  | <soap:Header>
  | <wsa:Action/>
  | <wsa:MessageID>urn:uuid:11a12e77-4931-4cda-a410-370b93c2cbd9</wsa:MessageID>
  | <wsa:ReplyTo>
  | <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
  | </wsa:ReplyTo>
  | <wsa:To>http://localhost:6543/EncryptionTesting/testing</wsa:To>
  | <wsse:Security soap:mustUnderstand="1">
  | <wsu:Timestamp wsu:Id="Timestamp-c5ef9cc4-f35d-4045-ab8e-a7adb67b3c70">
  | <wsu:Created>2006-10-06T10:21:37Z</wsu:Created>
  | <wsu:Expires>2006-10-06T10:26:37Z</wsu:Expires>
  | </wsu:Timestamp>
  | <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="SecurityToken-0c176d35-e384-4493-a6bd-104b391bcd8f">MIIDuzCCAqOgAwIBAgIKEY3RnQAAAAAAAzANBgkqhkiG9w0BAQUFADARMQ8wDQYDVQQDEwZJTlRFQzIwHhcNMDYxMDA1MTYxMTE1WhcNMDcxMDA1MTYyM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7+qQu8Ztpfj/RbNOIkbBQuxLUGh5eMFfZ5BfxhemlBeEnEuaGleh1tojA161e31PRIXmnnYZ2qhKk3lCNr6QL8A60TtuiQU+OLYSIo=</wsse:BinarySecurityToken>
  | <xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="SecurityToken-e7e5b317-8b00-4157-8c6f-c42414d5c835">
  | <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
  | <ds:DigestMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
  | </xenc:EncryptionMethod>
  | <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
  | <wsse:SecurityTokenReference>
  | <wsse:KeyIdentifier EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">S9JxKnwJ35Y=</wsse:KeyIdentifier>
  | </wsse:SecurityTokenReference>
  | </KeyInfo>
  | <xenc:CipherData>
  | <xenc:CipherValue>CfhLRmZ+fIDVDBRjS6eWBbpiIX8Qr2gfrKS9DA/9ruHcuzApJARXFW6412J5OdnlVScxgtD7Xt0Hg4taRDRxKHfMNcwQhqJLkKk2H5b/QT64C8fPzXtskW8dSAuAYDqGWgEf0rvgJ6+aJGW6zf4P85OjxvRcUDPY0I3jOkPVR4Y=</xenc:CipherValue>
  | </xenc:CipherData>
  | <xenc:ReferenceList>
  | <xenc:DataReference URI="#Enc-8ac4cdfd-96d9-47be-bab9-4aeac044c851"/>
  | </xenc:ReferenceList>
  | </xenc:EncryptedKey>
  | <Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="Sig-71c80168-3f98-4ec0-a884-89b3a1df4e9d">
  | <SignedInfo>
  | <ds:CanonicalizationMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
  | <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/>
  | <Reference URI="#Id-88009e8b-1439-4255-b176-08a8a396cce5">
  | <Transforms>
  | <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
  | </Transforms>
  | <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
  | <DigestValue>8+M6YPkeVnoDrUjC3eFqyCJBjzU=</DigestValue>
  | </Reference>
  | </SignedInfo>
  | <SignatureValue>Sp5k8zTea40kdYmieLMeYVeDnvM=</SignatureValue>
  | <KeyInfo>
  | <wsse:SecurityTokenReference>
  | <wsse:Reference URI="#SecurityToken-e7e5b317-8b00-4157-8c6f-c42414d5c835" ValueType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey"/>
  | </wsse:SecurityTokenReference>
  | </KeyInfo>
  | </Signature>
  | <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
  | <SignedInfo>
  | <ds:CanonicalizationMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
  | <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
  | <Reference URI="#Sig-71c80168-3f98-4ec0-a884-89b3a1df4e9d">
  | <Transforms>
  | <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
  | </Transforms>
  | <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
  | <DigestValue>ZfvRWWQdjf7yFOSkWLDWmXLuU24=</DigestValue>
  | </Reference>
  | </SignedInfo>
  | <SignatureValue>JuF2PvIAw9oFP/w8SVrVxi5MJ5B1P0oYMVG/C4vyju2DZ9S3tAHn2dHThXJuC+CsA1MDjyYdj4vy5lHwIGiSl5ZyutFRXXZrqJ9tqca6+eodqwHV9b9bU6MMPEX2eMCA5ws0MIdVXv1CVflTSxu1TPyIsWRD8ye5jltV+iN8N5E=</SignatureValue>
  | <KeyInfo>
  | <wsse:SecurityTokenReference>
  | <wsse:Reference URI="#SecurityToken-0c176d35-e384-4493-a6bd-104b391bcd8f" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
  | </wsse:SecurityTokenReference>
  | </KeyInfo>
  | </Signature>
  | </wsse:Security>
  | </soap:Header>
  | <soap:Body wsu:Id="Id-88009e8b-1439-4255-b176-08a8a396cce5">
  | <xenc:EncryptedData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" Id="Enc-8ac4cdfd-96d9-47be-bab9-4aeac044c851" Type="http://www.w3.org/2001/04/xmlenc#Content">
  | <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
  | <xenc:CipherData>
  | <xenc:CipherValue>gsM8HsQWkfyPgaY+iPhX6xQanq6Ekigv3a060vpt123D5Ho2Vy9n0S+DhV1O5TyRTQCuk8gHGKN9mMcrQAw/v9PVnrcoy+fYZhjZPYeLq4LcDzsSep8CMp78+RWlMthSU0dpJxBaPp+Ouzg1mK5UnjvRUmkvTAVwZbVy4gqifbjzgrS9SmsLMRzeHxcCQy1xJ6nrNmb8RucEjB5FUtf25IwGJlCxnfr1aRUPRyKxCWA=</xenc:CipherValue>
  | </xenc:CipherData>
  | </xenc:EncryptedData>
  | </soap:Body>
  | </soap:Envelope>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976535#3976535

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976535




More information about the jboss-user mailing list