Share via


KerberosTokenManager.LoadTokenFromSecurityTokenAssertion Method

Loads a security token referenced in a policy assertion into a SecurityToken. Loads a Kerberos security token referenced in a policy assertion into a KerberosToken.

Namespace: Microsoft.Web.Services2.Security.Tokens
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim ista As ISecurityTokenAssertion
Dim returnValue As SecurityToken
Dim kerberosTokenManager1 As KerberosTokenManager
returnValue = kerberosTokenManager1.LoadTokenFromSecurityTokenAssertion(ista)

Syntax

'Declaration
Public Overrides Function LoadTokenFromSecurityTokenAssertion( _
    ByVal ista As ISecurityTokenAssertion _
) As SecurityToken
public override SecurityToken LoadTokenFromSecurityTokenAssertion(
    ISecurityTokenAssertion ista
);
public: virtual SecurityToken^ LoadTokenFromSecurityTokenAssertion(
    ISecurityTokenAssertion^ ista
);
public SecurityToken LoadTokenFromSecurityTokenAssertion(
    ISecurityTokenAssertion ista
);
public override function LoadTokenFromSecurityTokenAssertion(
     ista : ISecurityTokenAssertion
) : SecurityToken;

Parameters

Return Value

The SecurityToken that is referenced in the ista parameter.

Return Value

The KerberosToken that is referenced in the sta parameter.

Remarks

Use the LoadTokenFromSecurityTokenAssertion method to parse the XML elements of policy assertions that reference a security token. That method returns an ISecurityTokenAssertion that can be passed to the LoadTokenFromSecurityTokenAssertion method to create a SecurityToken instance that satisfies the security token policy assertion.

This method is typically only called when WSE calls the GetTokenFromSecurityTokenAssertion method.

Notes to Inheritors: If an exception is thrown by this method, then processing for the current SOAP message will fail.

Remarks

When the sta parameter is null or does not reference a KerberosToken, null is returned.

Use the LoadTokenFromSecurityTokenAssertion method to parse the XML elements of policy assertions that reference KerberosToken security tokens. That method returns an ISecurityTokenAssertion that can be passed to the LoadTokenFromSecurityTokenAssertion method to create a KerberosToken instance.

Notes to Inheritors: If an exception is thrown by this method, then processing for the current SOAP message will fail.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

KerberosTokenManager Class
Microsoft.Web.Services2.Security.Tokens Namespace
ISecurityTokenAssertion
ISecurityTokenAssertion
KerberosToken

Other Resources

KerberosTokenManager Members