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 Ruchith Fernando <ru...@yahoo.com> on 2004/09/06 19:54:19 UTC

[wss4j]: BUG in SecurityTokenReference ??? :-?

Hi All,
 
I got two problems with respect to SecurityTokenReference
 
Problem #1:
 
I'm trying to create an EncryptedKey element with the key encrypted with an X509 cert.

Here I want to specify the SecurityTokenReference using a KeyIdetifier as shown in KeyInfo.txt (attatched). This element is taken from one of the messages inthe interop scenario for WS - Trust and WS - SecConv.
 
Everything works fine except for the EncodingType attribute.
The generated value is http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary
 
But this is required to be http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#Base64Binary in this situation according to the interop scenario sample message - Response from IP to Requester . (see KeyInfo.txt )
 
What do u think? Should we change the attribute value in the situation where we are referencing an X509 cert with KeyIdetifier? 
 
 
 
Problem #2
 
I'm working on the "ResponseFlowHandler for the STS" an it is deployed as a service handler in the order shown below:
 
 <--DoAllSender <-- AddressingHandler <-- "ResponseFlowHandler for the STS" <-- STS (pivot)
 
When I attatched the generated KeyInfo element (KeyInfo) into (within the SAML Assertion) the response from my Axis service the following exception is thrown during the processing in the AddressingHandler.
 
org.xml.sax.SAXParseException: The prefix "wsse" for element "wsse:SecurityTokenReference" is not bound. (stack trace attatched - trace.txt)
The response message after the "ResponseFlowHandler for the STS" is attatched (res.xml)
According to this the nemespaces seems fine.
 
Where have I gone wrong here?
 
Any help would be extreamly useful :)
 
Thanks
Ruchith
 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [wss4j]: BUG in SecurityTokenReference ??? :-?

Posted by Ruchith Fernando <ru...@gmail.com>.
Werner,

Thanks a lot

The error is in the WS - Trust / WS - SecConv interop document

Regards,
Ruchith


----- Original Message -----
From: Werner Dittmann <we...@t-online.de>
Date: Tue, 7 Sep 2004 21:23:31 +0200
Subject: Re: [wss4j]: BUG in SecurityTokenReference ??? :-?
To: Ruchith Fernando <ru...@yahoo.com>, fx-dev@ws.apache.org


Ruchith,
 
the generated value is correct according to the latest specs and the assoicated
errate document. Pls refer to
 
http://www.oasis-open.org/committees/download.php/7488/oasis-200401-wss-soap-message-security-1.0-errata-001.pdf
 
The full specs are at
 
http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wss


 
Regards,
Werner

----- Original Message ----- 
From: Ruchith Fernando 
To: fx-dev@ws.apache.org 
Sent: Monday, September 06, 2004 7:54 PM
Subject: [wss4j]: BUG in SecurityTokenReference ??? :-?



Hi All,
 
I got two problems with respect to SecurityTokenReference
 

Problem #1:

 
I'm trying to create an EncryptedKey element with the key encrypted
with an X509 cert.

Here I want to specify the SecurityTokenReference using a KeyIdetifier
as shown in KeyInfo.txt (attatched). This element is taken from one of
the messages inthe interop scenario for WS - Trust and WS - SecConv.
 
Everything works fine except for the EncodingType attribute.
The generated value is
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary
 
But this is required to be 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#Base64Binary
in this situation according to the interop scenario sample message -
Response from IP to Requester . (see KeyInfo.txt )
 

What do u think? Should we change the attribute value in the situation
where we are referencing an X509 cert with KeyIdetifier?
 

 

 

Problem #2

 
I'm working on the "ResponseFlowHandler for the STS" an it is deployed
as a service handler in the order shown below:
 
 <--DoAllSender <-- AddressingHandler <-- "ResponseFlowHandler for the
STS" <-- STS (pivot)
 
When I attatched the generated KeyInfo element (KeyInfo) into (within
the SAML Assertion) the response from my Axis service the following
exception is thrown during the processing in the AddressingHandler.
 

org.xml.sax.SAXParseException: The prefix "wsse" for element
"wsse:SecurityTokenReference" is not bound. (stack trace attatched -
trace.txt)
The response message after the "ResponseFlowHandler for the STS" is
attatched (res.xml)
According to this the nemespaces seems fine.
 

Where have I gone wrong here?

 
Any help would be extreamly useful :)
 
Thanks
Ruchith
 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

________________________________


<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><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#X509v3">MIIBbTCCARegAwIBAgIQFmqc8yMX34RPE55VigAQgjANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQD
EwdSdWNoaXRoMCAXDTk5MTIzMTE4MDAwMFoYDzIwOTgxMjMxMTgwMDAwWjASMRAwDgYDVQQDEwdS
dWNoaXRoMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMH81W8T0gg/ykeSAnIapxymyHglfvrTfBVp
U+FwdlpDw/Cr8KEojlf7c3ERQB2TZrJR8QPMxFvg6mmowpx40a8CAwEAAaNHMEUwQwYDVR0BBDww
OoAQayy9Tq/tZa/FJzxQ7VBUBqEUMBIxEDAOBgNVBAMTB1J1Y2hpdGiCEBZqnPMjF9+ETxOeVYoA
EIIwDQYJKoZIhvcNAQEEBQADQQCGIoifqqRFQbwatdq2cqUt2TxEhrIkRd2dvR4/bv1eVS7ytrn5
qkm/8AyiyNIaSKQngaBszSRm+u611RdPBcne</wsse:KeyIdentifier></wsse:SecurityTokenReference>
</ds:KeyInfo> 

________________________________


<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><wst:RequestSecurityTokenResponse
xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:Lifetime
xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:Created
xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust">2004-09-06T16:49:26Z</wst:Created><wst:Expires
xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust">2004-09-06T17:01:26Z</wst:Expires></wst:Lifetime><wsp:AppliesTo
xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy"><EndpointReference><Address>http://fabrikam.com/ident2</Address></EndpointReference></wsp:AppliesTo><wst:RequestedSecurityToken
xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><Assertion
AssertionID="df6128403c53261060b6c971b6ef82e7"
IssueInstant="2004-09-06T16:49:27.280Z" Issuer="www.example.com"
MajorVersion="1" MinorVersion="1"
xmlns="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><AuthenticationStatement
AuthenticationInstant="2004-09-06T16:49:27.280Z"
AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password"><Subject><NameIdentifier
NameQualifier="www.example.com">uid=joe,ou=people,ou=saml-demo,o=example.com</NameIdentifier><SubjectConfirmation><ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:holder-of-key</ConfirmationMethod><ds:KeyInfo
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">

<xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
<xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"/>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><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#X509v3">MIIBbTCCARegAwIBAgIQFmqc8yMX34RPE55VigAQgjANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQD
EwdSdWNoaXRoMCAXDTk5MTIzMTE4MDAwMFoYDzIwOTgxMjMxMTgwMDAwWjASMRAwDgYDVQQDEwdS
dWNoaXRoMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMH81W8T0gg/ykeSAnIapxymyHglfvrTfBVp
U+FwdlpDw/Cr8KEojlf7c3ERQB2TZrJR8QPMxFvg6mmowpx40a8CAwEAAaNHMEUwQwYDVR0BBDww
OoAQayy9Tq/tZa/FJzxQ7VBUBqEUMBIxEDAOBgNVBAMTB1J1Y2hpdGiCEBZqnPMjF9+ETxOeVYoA
EIIwDQYJKoZIhvcNAQEEBQADQQCGIoifqqRFQbwatdq2cqUt2TxEhrIkRd2dvR4/bv1eVS7ytrn5
qkm/8AyiyNIaSKQngaBszSRm+u611RdPBcne</wsse:KeyIdentifier></wsse:SecurityTokenReference>
</ds:KeyInfo>
<xenc:CipherData><xenc:CipherValue>m9ALwZnQJBKpPgZq5mzjXHpbXJgvkb0kv2opP7YM70NRTjsrlak17OkR4juvlkIjRPPCxftwvWZZ
l1VG9ybRsQ==</xenc:CipherValue></xenc:CipherData></xenc:EncryptedKey></ds:KeyInfo></SubjectConfirmation></Subject></AuthenticationStatement><ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
<ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
<ds:Reference URI="#df6128403c53261060b6c971b6ef82e7"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ec:InclusiveNamespaces
PrefixList="#default code ds kind rw saml samlp typens"
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
<ds:DigestValue
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">7DZsn/TvmOga39DLfK6WEfCi7aM=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
J8c9Y6pIit0TAog3+RNSoU8KpchhehdnsroM6YLgFR78KCqdHRecuqAcWBFgId6mEfsZtWMOSkIQ
bAKesE4X6A==
</ds:SignatureValue>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Data xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Certificate xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
MIIBbTCCARegAwIBAgIQRCA5orviz6hLlWtEbPVZ/TANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQD
EwdSdWNoaXRoMCAXDTk5MTIzMTE4MDAwMFoYDzIwOTgxMjMxMTgwMDAwWjASMRAwDgYDVQQDEwdS
dWNoaXRoMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM827meLmcVhCbW7/HTwtxAMIBdAmjDKlFfO
h51MGPm6CSz4Q8PUC3CJKCbQb4ybG/+mp7QyS1ogIACtrxKvrScCAwEAAaNHMEUwQwYDVR0BBDww
OoAQcLH9mLk10wPnogdySHiBf6EUMBIxEDAOBgNVBAMTB1J1Y2hpdGiCEEQgOaK74s+oS5VrRGz1
Wf0wDQYJKoZIhvcNAQEEBQADQQAII0KNYck1dfOkTEOlr729FO9xTzHYWi6z90tyw84zWbUFJiNF
4zLiLoaHCF6E6yjYbJj0cpKSp+igHp1qjEW0
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo></ds:Signature></Assertion></wst:RequestedSecurityToken><wst:RequestedProofToken
xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:ComputedKey>http://schemas.xmlsoap.org/ws/2004/04/security/trust/CK/PSHA1</wst:ComputedKey></wst:RequestedProofToken><wst:Entropy><wst:BinarySecret>3UnYa57RPZ1bLlgY7RmRkosPYWR7IIZx40NbPeaatDEPNeIdtdJeLIiyLpdbLqLE/sB/msoD3eybD9qBn+NreaqLyYdRhHVTdYburIFD5WWugm9HRHTnCd52SUifIZHpRP0+Mm5/GWkY4A0VjaO0EPgQh3plq5O5TxRVtEPVLWg=</wst:BinarySecret></wst:Entropy></wst:RequestSecurityTokenResponse></soapenv:Body></soapenv:Envelope>

________________________________


AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: The prefix
&quot;wsse&quot; for element &quot;wsse:SecurityTokenReference&quot;
is not bound.
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException:
The prefix &quot;wsse&quot; for element
&quot;wsse:SecurityTokenReference&quot; is not bound.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.message.addressing.handler.AddressingHandler.processServerResponse(AddressingHandler.java:425)
at org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:114)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:455)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
at org.apache.axis.transport.http.SimpleAxisWorker.execute(SimpleAxisWorker.java:428)
at org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker.java:155)
at org.apache.axis.transport.http.SimpleAxisServer.run(SimpleAxisServer.java:241)
at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java:284)
at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java:292)
at org.apache.axis.transport.http.SimpleAxisServer.main(SimpleAxisServer.java:373)
at MySas.main(MySas.java:19)

{http://xml.apache.org/axis/}hostname:doc

org.xml.sax.SAXParseException: The prefix "wsse" for element
"wsse:SecurityTokenReference" is not bound.
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1067)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.message.addressing.handler.AddressingHandler.processClientResponse(AddressingHandler.java:286)
at org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:108)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:160)
at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
at org.apache.axis.client.Call.invoke(Call.java:2718)
at org.apache.axis.client.Call.invoke(Call.java:1872)
at org.apache.ws.axis.security.trust.STSAgent.request(STSAgent.java:176)
at org.apache.ws.axis.samples.trust.secconv.interop.UOM_UNTToSAMLRequestor.main(UOM_UNTToSAMLRequestor.java:88)

Re: [wss4j]: BUG in SecurityTokenReference ??? :-?

Posted by Werner Dittmann <We...@t-online.de>.
Ruchith,

the generated value is correct according to the latest specs and the assoicated
errate document. Pls refer to

http://www.oasis-open.org/committees/download.php/7488/oasis-200401-wss-soap-message-security-1.0-errata-001.pdf

The full specs are at

http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wss

Regards,
Werner
  ----- Original Message ----- 
  From: Ruchith Fernando 
  To: fx-dev@ws.apache.org 
  Sent: Monday, September 06, 2004 7:54 PM
  Subject: [wss4j]: BUG in SecurityTokenReference ??? :-?


  Hi All,

  I got two problems with respect to SecurityTokenReference

  Problem #1:

  I'm trying to create an EncryptedKey element with the key encrypted with an X509 cert.

  Here I want to specify the SecurityTokenReference using a KeyIdetifier as shown in KeyInfo.txt (attatched). This element is taken from one of the messages inthe interop scenario for WS - Trust and WS - SecConv.

  Everything works fine except for the EncodingType attribute.
  The generated value is http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary

  But this is required to be http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#Base64Binary in this situation according to the interop scenario sample message - Response from IP to Requester . (see KeyInfo.txt )

  What do u think? Should we change the attribute value in the situation where we are referencing an X509 cert with KeyIdetifier? 



  Problem #2

  I'm working on the "ResponseFlowHandler for the STS" an it is deployed as a service handler in the order shown below:

   <--DoAllSender <-- AddressingHandler <-- "ResponseFlowHandler for the STS" <-- STS (pivot)

  When I attatched the generated KeyInfo element (KeyInfo) into (within the SAML Assertion) the response from my Axis service the following exception is thrown during the processing in the AddressingHandler.

  org.xml.sax.SAXParseException: The prefix "wsse" for element "wsse:SecurityTokenReference" is not bound. (stack trace attatched - trace.txt)
  The response message after the "ResponseFlowHandler for the STS" is attatched (res.xml)
  According to this the nemespaces seems fine.

  Where have I gone wrong here?

  Any help would be extreamly useful :)

  Thanks
  Ruchith

  __________________________________________________
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com 



------------------------------------------------------------------------------


  <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><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#X509v3">MIIBbTCCARegAwIBAgIQFmqc8yMX34RPE55VigAQgjANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQD
  EwdSdWNoaXRoMCAXDTk5MTIzMTE4MDAwMFoYDzIwOTgxMjMxMTgwMDAwWjASMRAwDgYDVQQDEwdS
  dWNoaXRoMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMH81W8T0gg/ykeSAnIapxymyHglfvrTfBVp
  U+FwdlpDw/Cr8KEojlf7c3ERQB2TZrJR8QPMxFvg6mmowpx40a8CAwEAAaNHMEUwQwYDVR0BBDww
  OoAQayy9Tq/tZa/FJzxQ7VBUBqEUMBIxEDAOBgNVBAMTB1J1Y2hpdGiCEBZqnPMjF9+ETxOeVYoA
  EIIwDQYJKoZIhvcNAQEEBQADQQCGIoifqqRFQbwatdq2cqUt2TxEhrIkRd2dvR4/bv1eVS7ytrn5
  qkm/8AyiyNIaSKQngaBszSRm+u611RdPBcne</wsse:KeyIdentifier></wsse:SecurityTokenReference>
  </ds:KeyInfo>


------------------------------------------------------------------------------


  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><wst:RequestSecurityTokenResponse xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:Lifetime xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:Created xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust">2004-09-06T16:49:26Z</wst:Created><wst:Expires xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust">2004-09-06T17:01:26Z</wst:Expires></wst:Lifetime><wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy"><EndpointReference><Address>http://fabrikam.com/ident2</Address></EndpointReference></wsp:AppliesTo><wst:RequestedSecurityToken xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><Assertion AssertionID="df6128403c53261060b6c971b6ef82e7" IssueInstant="2004-09-06T16:49:27.280Z" Issuer="www.example.com" MajorVersion="1" MinorVersion="1" xmlns="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><AuthenticationStatement AuthenticationInstant="2004-09-06T16:49:27.280Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password"><Subject><NameIdentifier NameQualifier="www.example.com">uid=joe,ou=people,ou=saml-demo,o=example.com</NameIdentifier><SubjectConfirmation><ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:holder-of-key</ConfirmationMethod><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">

  <xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
  <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"/>
  <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><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#X509v3">MIIBbTCCARegAwIBAgIQFmqc8yMX34RPE55VigAQgjANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQD
  EwdSdWNoaXRoMCAXDTk5MTIzMTE4MDAwMFoYDzIwOTgxMjMxMTgwMDAwWjASMRAwDgYDVQQDEwdS
  dWNoaXRoMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMH81W8T0gg/ykeSAnIapxymyHglfvrTfBVp
  U+FwdlpDw/Cr8KEojlf7c3ERQB2TZrJR8QPMxFvg6mmowpx40a8CAwEAAaNHMEUwQwYDVR0BBDww
  OoAQayy9Tq/tZa/FJzxQ7VBUBqEUMBIxEDAOBgNVBAMTB1J1Y2hpdGiCEBZqnPMjF9+ETxOeVYoA
  EIIwDQYJKoZIhvcNAQEEBQADQQCGIoifqqRFQbwatdq2cqUt2TxEhrIkRd2dvR4/bv1eVS7ytrn5
  qkm/8AyiyNIaSKQngaBszSRm+u611RdPBcne</wsse:KeyIdentifier></wsse:SecurityTokenReference>
  </ds:KeyInfo>
  <xenc:CipherData><xenc:CipherValue>m9ALwZnQJBKpPgZq5mzjXHpbXJgvkb0kv2opP7YM70NRTjsrlak17OkR4juvlkIjRPPCxftwvWZZ
  l1VG9ybRsQ==</xenc:CipherValue></xenc:CipherData></xenc:EncryptedKey></ds:KeyInfo></SubjectConfirmation></Subject></AuthenticationStatement><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
  <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
  <ds:Reference URI="#df6128403c53261060b6c971b6ef82e7" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
  <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ec:InclusiveNamespaces PrefixList="#default code ds kind rw saml samlp typens" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transform>
  </ds:Transforms>
  <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
  <ds:DigestValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">7DZsn/TvmOga39DLfK6WEfCi7aM=</ds:DigestValue>
  </ds:Reference>
  </ds:SignedInfo>
  <ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  J8c9Y6pIit0TAog3+RNSoU8KpchhehdnsroM6YLgFR78KCqdHRecuqAcWBFgId6mEfsZtWMOSkIQ
  bAKesE4X6A==
  </ds:SignatureValue>
  <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:X509Data xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:X509Certificate xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  MIIBbTCCARegAwIBAgIQRCA5orviz6hLlWtEbPVZ/TANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQD
  EwdSdWNoaXRoMCAXDTk5MTIzMTE4MDAwMFoYDzIwOTgxMjMxMTgwMDAwWjASMRAwDgYDVQQDEwdS
  dWNoaXRoMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM827meLmcVhCbW7/HTwtxAMIBdAmjDKlFfO
  h51MGPm6CSz4Q8PUC3CJKCbQb4ybG/+mp7QyS1ogIACtrxKvrScCAwEAAaNHMEUwQwYDVR0BBDww
  OoAQcLH9mLk10wPnogdySHiBf6EUMBIxEDAOBgNVBAMTB1J1Y2hpdGiCEEQgOaK74s+oS5VrRGz1
  Wf0wDQYJKoZIhvcNAQEEBQADQQAII0KNYck1dfOkTEOlr729FO9xTzHYWi6z90tyw84zWbUFJiNF
  4zLiLoaHCF6E6yjYbJj0cpKSp+igHp1qjEW0
  </ds:X509Certificate>
  </ds:X509Data>
  </ds:KeyInfo></ds:Signature></Assertion></wst:RequestedSecurityToken><wst:RequestedProofToken xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:ComputedKey>http://schemas.xmlsoap.org/ws/2004/04/security/trust/CK/PSHA1</wst:ComputedKey></wst:RequestedProofToken><wst:Entropy><wst:BinarySecret>3UnYa57RPZ1bLlgY7RmRkosPYWR7IIZx40NbPeaatDEPNeIdtdJeLIiyLpdbLqLE/sB/msoD3eybD9qBn+NreaqLyYdRhHVTdYburIFD5WWugm9HRHTnCd52SUifIZHpRP0+Mm5/GWkY4A0VjaO0EPgQh3plq5O5TxRVtEPVLWg=</wst:BinarySecret></wst:Entropy></wst:RequestSecurityTokenResponse></soapenv:Body></soapenv:Envelope>


------------------------------------------------------------------------------


  AxisFault
   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
   faultSubcode: 
   faultString: org.xml.sax.SAXParseException: The prefix &quot;wsse&quot; for element &quot;wsse:SecurityTokenReference&quot; is not bound.
   faultActor: 
   faultNode: 
   faultDetail: 
  {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: The prefix &quot;wsse&quot; for element &quot;wsse:SecurityTokenReference&quot; is not bound.
  at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
  at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at javax.xml.parsers.SAXParser.parse(Unknown Source)
  at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)
  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
  at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
  at org.apache.axis.message.addressing.handler.AddressingHandler.processServerResponse(AddressingHandler.java:425)
  at org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:114)
  at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
  at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
  at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
  at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
  at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
  at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
  at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:455)
  at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
  at org.apache.axis.transport.http.SimpleAxisWorker.execute(SimpleAxisWorker.java:428)
  at org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker.java:155)
  at org.apache.axis.transport.http.SimpleAxisServer.run(SimpleAxisServer.java:241)
  at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java:284)
  at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java:292)
  at org.apache.axis.transport.http.SimpleAxisServer.main(SimpleAxisServer.java:373)
  at MySas.main(MySas.java:19)

  {http://xml.apache.org/axis/}hostname:doc

  org.xml.sax.SAXParseException: The prefix "wsse" for element "wsse:SecurityTokenReference" is not bound.
  at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
  at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
  at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1067)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at javax.xml.parsers.SAXParser.parse(Unknown Source)
  at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)
  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
  at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
  at org.apache.axis.message.addressing.handler.AddressingHandler.processClientResponse(AddressingHandler.java:286)
  at org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:108)
  at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
  at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
  at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:160)
  at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
  at org.apache.axis.client.Call.invoke(Call.java:2718)
  at org.apache.axis.client.Call.invoke(Call.java:1872)
  at org.apache.ws.axis.security.trust.STSAgent.request(STSAgent.java:176)
  at org.apache.ws.axis.samples.trust.secconv.interop.UOM_UNTToSAMLRequestor.main(UOM_UNTToSAMLRequestor.java:88)


Re: [wss4j]: BUG in SecurityTokenReference ??? :-?

Posted by Werner Dittmann <We...@t-online.de>.
Ruchith,

the ecoding type attribute changed during the work on the specs. AFAIK the
interop documents do not reflect the latest status of the real WSS specifications.
I need to check with the current specs. There was some e-mail on the list some
time ago (3-4months I believe). Let me check it.

About the "not bound" problem: no idea yet. Need to dig in a little more.

Regards,
Werner
  ----- Original Message ----- 
  From: Ruchith Fernando 
  To: fx-dev@ws.apache.org 
  Sent: Monday, September 06, 2004 7:54 PM
  Subject: [wss4j]: BUG in SecurityTokenReference ??? :-?


  Hi All,

  I got two problems with respect to SecurityTokenReference

  Problem #1:

  I'm trying to create an EncryptedKey element with the key encrypted with an X509 cert.

  Here I want to specify the SecurityTokenReference using a KeyIdetifier as shown in KeyInfo.txt (attatched). This element is taken from one of the messages inthe interop scenario for WS - Trust and WS - SecConv.

  Everything works fine except for the EncodingType attribute.
  The generated value is http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary

  But this is required to be http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#Base64Binary in this situation according to the interop scenario sample message - Response from IP to Requester . (see KeyInfo.txt )

  What do u think? Should we change the attribute value in the situation where we are referencing an X509 cert with KeyIdetifier? 



  Problem #2

  I'm working on the "ResponseFlowHandler for the STS" an it is deployed as a service handler in the order shown below:

   <--DoAllSender <-- AddressingHandler <-- "ResponseFlowHandler for the STS" <-- STS (pivot)

  When I attatched the generated KeyInfo element (KeyInfo) into (within the SAML Assertion) the response from my Axis service the following exception is thrown during the processing in the AddressingHandler.

  org.xml.sax.SAXParseException: The prefix "wsse" for element "wsse:SecurityTokenReference" is not bound. (stack trace attatched - trace.txt)
  The response message after the "ResponseFlowHandler for the STS" is attatched (res.xml)
  According to this the nemespaces seems fine.

  Where have I gone wrong here?

  Any help would be extreamly useful :)

  Thanks
  Ruchith

  __________________________________________________
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com 



------------------------------------------------------------------------------


  <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><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#X509v3">MIIBbTCCARegAwIBAgIQFmqc8yMX34RPE55VigAQgjANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQD
  EwdSdWNoaXRoMCAXDTk5MTIzMTE4MDAwMFoYDzIwOTgxMjMxMTgwMDAwWjASMRAwDgYDVQQDEwdS
  dWNoaXRoMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMH81W8T0gg/ykeSAnIapxymyHglfvrTfBVp
  U+FwdlpDw/Cr8KEojlf7c3ERQB2TZrJR8QPMxFvg6mmowpx40a8CAwEAAaNHMEUwQwYDVR0BBDww
  OoAQayy9Tq/tZa/FJzxQ7VBUBqEUMBIxEDAOBgNVBAMTB1J1Y2hpdGiCEBZqnPMjF9+ETxOeVYoA
  EIIwDQYJKoZIhvcNAQEEBQADQQCGIoifqqRFQbwatdq2cqUt2TxEhrIkRd2dvR4/bv1eVS7ytrn5
  qkm/8AyiyNIaSKQngaBszSRm+u611RdPBcne</wsse:KeyIdentifier></wsse:SecurityTokenReference>
  </ds:KeyInfo>


------------------------------------------------------------------------------


  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><wst:RequestSecurityTokenResponse xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:Lifetime xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:Created xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust">2004-09-06T16:49:26Z</wst:Created><wst:Expires xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust">2004-09-06T17:01:26Z</wst:Expires></wst:Lifetime><wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy"><EndpointReference><Address>http://fabrikam.com/ident2</Address></EndpointReference></wsp:AppliesTo><wst:RequestedSecurityToken xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><Assertion AssertionID="df6128403c53261060b6c971b6ef82e7" IssueInstant="2004-09-06T16:49:27.280Z" Issuer="www.example.com" MajorVersion="1" MinorVersion="1" xmlns="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><AuthenticationStatement AuthenticationInstant="2004-09-06T16:49:27.280Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password"><Subject><NameIdentifier NameQualifier="www.example.com">uid=joe,ou=people,ou=saml-demo,o=example.com</NameIdentifier><SubjectConfirmation><ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:holder-of-key</ConfirmationMethod><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">

  <xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
  <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"/>
  <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><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#X509v3">MIIBbTCCARegAwIBAgIQFmqc8yMX34RPE55VigAQgjANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQD
  EwdSdWNoaXRoMCAXDTk5MTIzMTE4MDAwMFoYDzIwOTgxMjMxMTgwMDAwWjASMRAwDgYDVQQDEwdS
  dWNoaXRoMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMH81W8T0gg/ykeSAnIapxymyHglfvrTfBVp
  U+FwdlpDw/Cr8KEojlf7c3ERQB2TZrJR8QPMxFvg6mmowpx40a8CAwEAAaNHMEUwQwYDVR0BBDww
  OoAQayy9Tq/tZa/FJzxQ7VBUBqEUMBIxEDAOBgNVBAMTB1J1Y2hpdGiCEBZqnPMjF9+ETxOeVYoA
  EIIwDQYJKoZIhvcNAQEEBQADQQCGIoifqqRFQbwatdq2cqUt2TxEhrIkRd2dvR4/bv1eVS7ytrn5
  qkm/8AyiyNIaSKQngaBszSRm+u611RdPBcne</wsse:KeyIdentifier></wsse:SecurityTokenReference>
  </ds:KeyInfo>
  <xenc:CipherData><xenc:CipherValue>m9ALwZnQJBKpPgZq5mzjXHpbXJgvkb0kv2opP7YM70NRTjsrlak17OkR4juvlkIjRPPCxftwvWZZ
  l1VG9ybRsQ==</xenc:CipherValue></xenc:CipherData></xenc:EncryptedKey></ds:KeyInfo></SubjectConfirmation></Subject></AuthenticationStatement><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
  <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
  <ds:Reference URI="#df6128403c53261060b6c971b6ef82e7" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:Transforms xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
  <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ec:InclusiveNamespaces PrefixList="#default code ds kind rw saml samlp typens" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transform>
  </ds:Transforms>
  <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"/>
  <ds:DigestValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">7DZsn/TvmOga39DLfK6WEfCi7aM=</ds:DigestValue>
  </ds:Reference>
  </ds:SignedInfo>
  <ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  J8c9Y6pIit0TAog3+RNSoU8KpchhehdnsroM6YLgFR78KCqdHRecuqAcWBFgId6mEfsZtWMOSkIQ
  bAKesE4X6A==
  </ds:SignatureValue>
  <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:X509Data xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <ds:X509Certificate xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  MIIBbTCCARegAwIBAgIQRCA5orviz6hLlWtEbPVZ/TANBgkqhkiG9w0BAQQFADASMRAwDgYDVQQD
  EwdSdWNoaXRoMCAXDTk5MTIzMTE4MDAwMFoYDzIwOTgxMjMxMTgwMDAwWjASMRAwDgYDVQQDEwdS
  dWNoaXRoMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAM827meLmcVhCbW7/HTwtxAMIBdAmjDKlFfO
  h51MGPm6CSz4Q8PUC3CJKCbQb4ybG/+mp7QyS1ogIACtrxKvrScCAwEAAaNHMEUwQwYDVR0BBDww
  OoAQcLH9mLk10wPnogdySHiBf6EUMBIxEDAOBgNVBAMTB1J1Y2hpdGiCEEQgOaK74s+oS5VrRGz1
  Wf0wDQYJKoZIhvcNAQEEBQADQQAII0KNYck1dfOkTEOlr729FO9xTzHYWi6z90tyw84zWbUFJiNF
  4zLiLoaHCF6E6yjYbJj0cpKSp+igHp1qjEW0
  </ds:X509Certificate>
  </ds:X509Data>
  </ds:KeyInfo></ds:Signature></Assertion></wst:RequestedSecurityToken><wst:RequestedProofToken xmlns:wst="http://schemas.xmlsoap.org/ws/2004/04/trust"><wst:ComputedKey>http://schemas.xmlsoap.org/ws/2004/04/security/trust/CK/PSHA1</wst:ComputedKey></wst:RequestedProofToken><wst:Entropy><wst:BinarySecret>3UnYa57RPZ1bLlgY7RmRkosPYWR7IIZx40NbPeaatDEPNeIdtdJeLIiyLpdbLqLE/sB/msoD3eybD9qBn+NreaqLyYdRhHVTdYburIFD5WWugm9HRHTnCd52SUifIZHpRP0+Mm5/GWkY4A0VjaO0EPgQh3plq5O5TxRVtEPVLWg=</wst:BinarySecret></wst:Entropy></wst:RequestSecurityTokenResponse></soapenv:Body></soapenv:Envelope>


------------------------------------------------------------------------------


  AxisFault
   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
   faultSubcode: 
   faultString: org.xml.sax.SAXParseException: The prefix &quot;wsse&quot; for element &quot;wsse:SecurityTokenReference&quot; is not bound.
   faultActor: 
   faultNode: 
   faultDetail: 
  {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: The prefix &quot;wsse&quot; for element &quot;wsse:SecurityTokenReference&quot; is not bound.
  at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
  at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
  at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at javax.xml.parsers.SAXParser.parse(Unknown Source)
  at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)
  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
  at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
  at org.apache.axis.message.addressing.handler.AddressingHandler.processServerResponse(AddressingHandler.java:425)
  at org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:114)
  at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
  at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
  at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
  at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
  at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
  at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
  at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:455)
  at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
  at org.apache.axis.transport.http.SimpleAxisWorker.execute(SimpleAxisWorker.java:428)
  at org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker.java:155)
  at org.apache.axis.transport.http.SimpleAxisServer.run(SimpleAxisServer.java:241)
  at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java:284)
  at org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java:292)
  at org.apache.axis.transport.http.SimpleAxisServer.main(SimpleAxisServer.java:373)
  at MySas.main(MySas.java:19)

  {http://xml.apache.org/axis/}hostname:doc

  org.xml.sax.SAXParseException: The prefix "wsse" for element "wsse:SecurityTokenReference" is not bound.
  at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
  at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
  at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1067)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at javax.xml.parsers.SAXParser.parse(Unknown Source)
  at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)
  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
  at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
  at org.apache.axis.message.addressing.handler.AddressingHandler.processClientResponse(AddressingHandler.java:286)
  at org.apache.axis.message.addressing.handler.AddressingHandler.invoke(AddressingHandler.java:108)
  at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
  at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
  at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:160)
  at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
  at org.apache.axis.client.Call.invoke(Call.java:2718)
  at org.apache.axis.client.Call.invoke(Call.java:1872)
  at org.apache.ws.axis.security.trust.STSAgent.request(STSAgent.java:176)
  at org.apache.ws.axis.samples.trust.secconv.interop.UOM_UNTToSAMLRequestor.main(UOM_UNTToSAMLRequestor.java:88)