<SecurityTokenReference> Element (WSE for Microsoft .NET) (2)
Specifies the token type and key for a specific security token.
<microsoft.web.services2> Element
<tokenIssuer> Element (WSE for Microsoft .NET) (2)
<serverToken> Element
<KeyInfo> Element (WSE for Microsoft .NET) (2)
<SecurityTokenReference>
<KeyIdentifier ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">
ZPGrPnuqATeSgVjLYcmiY/GSWWY=
</wsse:KeyIdentifier>
</SecurityTokenReference>
Attributes and Elements
Attributes
None
Child Elements
Element | Description |
---|---|
Specifies the key identifier for a security token. |
Parent Elements
Element | Description |
---|---|
Specifies the requirements for security tokens used to encrypt SOAP messages. |
Remarks
When issuing security tokens, use the <SecurityTokenReference> element to specify a security token within a <serverToken> Element element. For more details about issuing security tokens, see Issuing Security Tokens.
Example
The following code example specifies an X509SecurityToken with a specific key to sign the responses for security token requests.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<microsoft.web.services2>
<tokenIssuer>
<serverToken>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier">
ZPGrPnuqATeSgVjLYcmiY/GSWWY=
</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</KeyInfo>
</serverToken>
</tokenIssuer>
</microsoft.web.services2>
</configuration>