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 "Shweta Desai (JIRA)" <ji...@apache.org> on 2007/05/25 21:35:16 UTC

[jira] Updated: (WSS-76) "SecurityToken" inside "UsernameToken"

     [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shweta Desai updated WSS-76:
----------------------------

    Summary: "SecurityToken" inside "UsernameToken"  (was: Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN")

> "SecurityToken" inside "UsernameToken"
> --------------------------------------
>
>                 Key: WSS-76
>                 URL: https://issues.apache.org/jira/browse/WSS-76
>             Project: WSS4J
>          Issue Type: Bug
>         Environment: Servre : .net WSE 3.0
> Client AXIS2 1.1.1
>            Reporter: Shweta Desai
>         Assigned To: Davanum Srinivas
>            Priority: Blocker
>
> Hi,
> Header Requirement of connectivity is written below.
> <wsse:Security soap:mustUnderstand="1">
>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>            <wsu:Expires>2006-12-05T23:47:15Z</wsu:Expires>
>      </wsu:Timestamp>
>       <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>           <wsse:Username>DMRC</wsse:Username>
>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>       </wsse:UsernameToken>
>  </wsse:Security>
> But What I am able to generate is written below.
> <?xml version='1.0' encoding='UTF-8'?>
>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>        <soapenv:Header>
>           <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="true">
>              <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-27646795">
>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>                 <wsu:Expires>2007-05-21T18:02:10.175Z</wsu:Expires>
>              </wsu:Timestamp>
>              <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-9102426">
>                 <wsse:Username>DMRC</wsse:Username>
>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>              </wsse:UsernameToken>
>           </wsse:Security>
> Differences are here.
> 1. Time stamp in my heade is differn than requird.
> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
> 	        if(wsConfig.isPrecisionInMilliSeconds())
> 	        	wsConfig.setPrecisionInMilliSeconds(false);
> I don't know how I can I set this WSSConfig value in header.
> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
> if I do above way, NONCE_LN over rite the value of CREATED_LN
> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
> And requirement is genrate "SecurityToken" inside "UsernameToken".
> Your help is very appriciated.
> Thanks & Regards,
> Shweta Desai.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Re: [jira] Updated: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by Werner Dittmann <We...@t-online.de>.
First of all: this error report is a bit confusing :-) . What
is the real problem? Is it really a bug? Or is it just a
question "how to do some things"?

What is the "SecurityToken" that the request needs
inside "UsernameToken"? Lokking at the "Header Requirement"
below I see a "SecurityToken" as part of the Id (Identifier),
this is free text and can be freely chosen. The only
requirement here is that the Id is unique inside the request.

Regards,
Werner

Shweta Desai (JIRA) wrote:
>      [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Shweta Desai updated WSS-76:
> ----------------------------
> 
>     Summary: "SecurityToken" inside "UsernameToken"  (was: Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN")
> 
>> "SecurityToken" inside "UsernameToken"
>> --------------------------------------
>>
>>                 Key: WSS-76
>>                 URL: https://issues.apache.org/jira/browse/WSS-76
>>             Project: WSS4J
>>          Issue Type: Bug
>>         Environment: Servre : .net WSE 3.0
>> Client AXIS2 1.1.1
>>            Reporter: Shweta Desai
>>         Assigned To: Davanum Srinivas
>>            Priority: Blocker
>>
>> Hi,
>> Header Requirement of connectivity is written below.
>> <wsse:Security soap:mustUnderstand="1">
>>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>>            <wsu:Expires>2006-12-05T23:47:15Z</wsu:Expires>
>>      </wsu:Timestamp>
>>       <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>>           <wsse:Username>DMRC</wsse:Username>
>>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>>       </wsse:UsernameToken>
>>  </wsse:Security>
>> But What I am able to generate is written below.
>> <?xml version='1.0' encoding='UTF-8'?>
>>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>>        <soapenv:Header>
>>           <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="true">
>>              <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-27646795">
>>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>>                 <wsu:Expires>2007-05-21T18:02:10.175Z</wsu:Expires>
>>              </wsu:Timestamp>
>>              <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-9102426">
>>                 <wsse:Username>DMRC</wsse:Username>
>>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>>              </wsse:UsernameToken>
>>           </wsse:Security>
>> Differences are here.
>> 1. Time stamp in my heade is differn than requird.
>> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
>> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
>> 	        if(wsConfig.isPrecisionInMilliSeconds())
>> 	        	wsConfig.setPrecisionInMilliSeconds(false);
>> I don't know how I can I set this WSSConfig value in header.
>> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
>> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
>> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
>> if I do above way, NONCE_LN over rite the value of CREATED_LN
>> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
>> And requirement is genrate "SecurityToken" inside "UsernameToken".
>> Your help is very appriciated.
>> Thanks & Regards,
>> Shweta Desai.
> 


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


Re: [jira] Updated: (WSS-76) "SecurityToken" inside "UsernameToken"

Posted by Werner Dittmann <We...@t-online.de>.
First of all: this error report is a bit confusing :-) . What
is the real problem? Is it really a bug? Or is it just a
question "how to do some things"?

What is the "SecurityToken" that the request needs
inside "UsernameToken"? Lokking at the "Header Requirement"
below I see a "SecurityToken" as part of the Id (Identifier),
this is free text and can be freely chosen. The only
requirement here is that the Id is unique inside the request.

Regards,
Werner

Shweta Desai (JIRA) wrote:
>      [ https://issues.apache.org/jira/browse/WSS-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Shweta Desai updated WSS-76:
> ----------------------------
> 
>     Summary: "SecurityToken" inside "UsernameToken"  (was: Not able to Generate header as required : Timesatmp, "SecurityToken" inside "UsernameToken" and "CREATED_LN" with "NONCE_LN")
> 
>> "SecurityToken" inside "UsernameToken"
>> --------------------------------------
>>
>>                 Key: WSS-76
>>                 URL: https://issues.apache.org/jira/browse/WSS-76
>>             Project: WSS4J
>>          Issue Type: Bug
>>         Environment: Servre : .net WSE 3.0
>> Client AXIS2 1.1.1
>>            Reporter: Shweta Desai
>>         Assigned To: Davanum Srinivas
>>            Priority: Blocker
>>
>> Hi,
>> Header Requirement of connectivity is written below.
>> <wsse:Security soap:mustUnderstand="1">
>>     <wsu:Timestamp wsu:Id="Timestamp-137c795a-60b3-4d28-acce-0abf868de8ce">
>>           <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>>            <wsu:Expires>2006-12-05T23:47:15Z</wsu:Expires>
>>      </wsu:Timestamp>
>>       <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="SecurityToken-e1d2ddef-25f1-455e-a535-42aec1f8a1fc">
>>           <wsse:Username>DMRC</wsse:Username>
>>            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>>             <wsse:Nonce>mI0DNp0NZZ9BRlGYQn7xdQ==</wsse:Nonce>
>>             <wsu:Created>2006-12-05T23:42:15Z</wsu:Created>
>>       </wsse:UsernameToken>
>>  </wsse:Security>
>> But What I am able to generate is written below.
>> <?xml version='1.0' encoding='UTF-8'?>
>>     <soapenv:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>>        <soapenv:Header>
>>           <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="true">
>>              <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-27646795">
>>                 <wsu:Created>2007-05-21T17:57:10.175Z</wsu:Created>
>>                 <wsu:Expires>2007-05-21T18:02:10.175Z</wsu:Expires>
>>              </wsu:Timestamp>
>>              <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-9102426">
>>                 <wsse:Username>DMRC</wsse:Username>
>>                 <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
>>                 <wsse:Nonce>iOuOBQmQN+nPg8Q1JiJ36A==</wsse:Nonce>
>>              </wsse:UsernameToken>
>>           </wsse:Security>
>> Differences are here.
>> 1. Time stamp in my heade is differn than requird.
>> WSSConfig wsConfig = WSSConfig.getDefaultWSConfig();
>> 	        System.out.println("mili8sec>>>>>" +wsConfig.isPrecisionInMilliSeconds());
>> 	        if(wsConfig.isPrecisionInMilliSeconds())
>> 	        	wsConfig.setPrecisionInMilliSeconds(false);
>> I don't know how I can I set this WSSConfig value in header.
>> 2. I am not ablt to generate "<wsu:Created>2006-12-05T23:42:15Z</wsu:Created>".
>> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.CREATED_LN);
>> o.setProperty(WSHandlerConstants.ADD_UT_ELEMENTS, WSConstants.NONCE_LN);
>> if I do above way, NONCE_LN over rite the value of CREATED_LN
>> 3. Not able to generate "SecurityToken" inside the "UsernameToken" as I don't know how to do that.
>> And requirement is genrate "SecurityToken" inside "UsernameToken".
>> Your help is very appriciated.
>> Thanks & Regards,
>> Shweta Desai.
> 


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