[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wss4j-dev
Subject:    Re: how to insert security token?
From:       Werner Dittmann <Werner.Dittmann () t-online ! de>
Date:       2006-05-17 18:32:33
Message-ID: 446B6C41.6000202 () t-online ! de
[Download RAW message or body]

Andreas,

this is not possible with WSS4J because this is a proprietary
format that is not specified by OASIS.

Regards,
Werner

Andreas Wiencke wrote:
> Hi,
> 
> I use Axis to access a web service. The web service expects a custom security 
> token that looks like this:
> 
> <S:Envelope
>   xmlns:P="http://portal.bmi.gv.at/ref/pvp1.xsd"
>   xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
>   xmlns:wsa="http://schemas.xmlsoap.org/ws/2002/03/addressing"
>   xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"
>   <S:Header>
>     <wsse:Security>
>       <P:pvpToken version="1.8">
>       <P:authenticate>
>         <P:participantId>AT:L6:994</P:participantId>
>         <userPrincipal>
>         <userId>fmeier@stmk.gv.at</userId>
>         <cn>F. Meier</cn>
>         <gvOuId>AT:L6:1299</gvOuId>
>         <ou>L6AL-F2/c</ou>
>         <gvSecClass>2</gvSecClass>
>         <gvGid>UhO5RG++klaOTsVY+CU=</gvGid>
>         <gvFunction>SB</gvFunction>
>         </userPrincipal>
>       </P:authenticate>
>       <P:authorize>
>         <P:role value="ZMR-Fremdenbehoerdenanfrage">
>         <P:param>
>         <P:key>GKZ</P:key>
>         <P:value>60100</P:value>
>         </P:param>
>         </P:role>
>       </P:authorize>
>       </P:pvpToken>
>     </wsse:Security>
>   </S:Header>
>   <S:Body>
>      . . .
>   </S:Body>
> </S:Envelope>
> 
> I do know how to insert a username token by using a client deployment 
> descriptor and WSS4J, but how can I insert such a custom security token into 
> my soap message? Is this possible with Axis/WSS4J at all?
> 
> Thanks in advance for helping,
> 
> Andreas.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
> 
> 


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic