Hi Peter,
Please see comments inline.

Signature
Thank you.
Regards,
Softwaremaker
==================================
> Thanks Softwaremaker,
>
> Baring in mind that I am happy to use SSL to access the secure webservices,
> I wanted to avoid encrypting the SOAP body again. I actually found the
> following thread useful:
[Softwaremaker] Encrypting the usernameToken itself alone does not encrypt
the entire SOAP Body. In fact, implementing SSL encrypts the entire SOAP
Envelope++. Your message payload and latency increases with SSL.
http://groups.google.ie/groups?hl=en&lr=&threadm=F3C2A151-B100-46D5-948D-3609C46
F29C9%40microsoft.com&rnum=3&prev=/groups%3Fq%3Dwse%2520custom%2520hash%26hl%3De
n%26lr%3D%26sa%3DN%26tab%3Dwg
> But in the end, I used a _slightly_ different scheme to the one described (I
> overrode VerifyToken,: since it is the only thing that calls
> AuthenticateToken, my version just doesn't call it... )
[Softwaremaker] I am curious why your version doesnt call it. Did you
1) Inherit UsernameTokenManager in your custom usernameToken class ?
2) Override Function AuthenticateToken ?
3) Set your *.config file to read your custom usernameToken class as such ?
<securityTokenManager type="UsernameTokenEG.CustomUsernameTokenManager,
UsernameTokenEG"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd" qname="wsse:UsernameToken" />
> Thanks for the tip thoug
>
> Pete
Peter McEvoy - 10 Nov 2004 14:00 GMT
My comments in line too...
> [Softwaremaker] Encrypting the usernameToken itself alone does not encrypt
> the entire SOAP Body. In fact, implementing SSL encrypts the entire SOAP
> Envelope++. Your message payload and latency increases with SSL.
Point taken - but I will be using SSL to encrypt everything in anycase: the
contents of the Body will be sensitive. I want to avoid using WSE
encryption, as we have SSL hardware accelerators in the Firewall, and there
is little point encrypting twice.
> [Softwaremaker] I am curious why your version doesnt call it. Did you
> 1) Inherit UsernameTokenManager in your custom usernameToken class ?
Yes - well no: I extended UserNameTokenManager in my custom TokenManager
class (I think you may have mistyped)
> 2) Override Function AuthenticateToken ?
Yes - but it just throws NotImplmentedException (for safety - I want to know
if anything else other than VerifyToken calls AuthenticateToken). The WSE
documentation indicates that the VerifyToken method calls AuthenticateToken -
I thus overrode VerifyToken and made my version NOT call AuthenticateToken.
> 3) Set your *.config file to read your custom usernameToken class as such ?
> <securityTokenManager type="UsernameTokenEG.CustomUsernameTokenManager,
> UsernameTokenEG"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> ty-secext-1.0.xsd" qname="wsse:UsernameToken" />
Yup - did this too.
HTH
Pete