Anybody know how is build the UsernameToken.Key Property in WSE3 ?
- From: "Rémy" <remy.bertrand@xxxxxxxxxxxxxxx>
- Date: Tue, 11 Apr 2006 14:52:31 +0200
Hi,
I try to code a WebService (non dotNet). My dotNet client will send a SOAP
message that is signed using an UsernameToken.
On the client side, a custom assertion is coded and the SecureMessage method
contains:
// Create username token
UsernameToken userToken = new UsernameToken(Username, Password,
PasswordOption.SendPlainText);
// Add it to Security
security.Tokens.Add(userToken);
// Sign the body using the username token
MessageSignature sig = new MessageSignature(userToken);
sig.SignatureOptions = SignatureOptions.IncludeSoapBody;
security.Elements.Add(sig);
The SOAP message is correctly built and sent, i can check all the
DigestValue in the signature, but i am not able to verify the
SignatureValue.
I guess that this is because i don't produce the same secret key from the
username token.
I found in WSS4J an algorithm to build this secret key, which is claimed to
be compatible with WSE2.0, but it seems it is not the same in WSE3.0.
The only documentation i found on msdn about this value is :
"the key for a UsernameToken is generated using various properties of the
token, including the Label and Nonce properties. "
which is interesting, but far from enough for me...
Thanks.
Rémy
.
- Prev by Date: Custom UsernameTokenManager for different webservices
- Next by Date: Re: Certificate Store and Authority
- Previous by thread: Custom UsernameTokenManager for different webservices
- Next by thread: Re: Certificate Store and Authority
- Index(es):
Relevant Pages
|
Loading