I know I've seen this explanation before and cannot find it.
I'm going on this assumption and hopefully I have this right.
If you are signing or encrypting with a security token, let's say an X509
token, you could add the token to the security.Tokens collection and also
use that token to create your element (let's say EncryptedData).
Or you can skip adding the token to the Tokens collection and only add it
through the EncryptedData element.
So given that my assumption is correct...what is the difference? When and
why would you use one method over the other? I thought Hervey explained part
of this. That WSE will first look in the element for the token and if it's
not there, go look in the tokens collection.
thanks
Julie
Julie Lerman - 28 Oct 2004 21:57 GMT
p.s. this is not referring to using UsernameTokens and their
DerivedKeyTokens, by the way.
> I know I've seen this explanation before and cannot find it.
>
[quoted text clipped - 15 lines]
>
> Julie
Softwaremaker - 28 Oct 2004 22:55 GMT
> I know I've seen this explanation before and cannot find it.
>
[quoted text clipped - 6 lines]
> Or you can skip adding the token to the Tokens collection and only add it
> through the EncryptedData element.
[Softwaremaker] There is a slight difference in whether you are signing or
encrypting with a token,
Dont know if my blog here helps in answering your question
http://dotnetjunkies.com/WebLog/softwaremaker/archive/2004/10/20/29158.aspx
Therefore, if you are signing, i believe you need to add it to your token
collection.
> So given that my assumption is correct...what is the difference? When and
> why would you use one method over the other? I thought Hervey explained part
[quoted text clipped - 4 lines]
>
> Julie