SecurityContextTokenManager.GetCachedToken Method
Looks for a SecurityContextToken security token in the global security context token cache that matches the specified security policy assertion and scope.
Namespace: Microsoft.Web.Services2.Security.Tokens
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim sta As ISecurityTokenAssertion
Dim appliesTo As EndpointReference
Dim returnValue As SecurityContextToken
Dim securityContextTokenManager1 As SecurityContextTokenManager
returnValue = securityContextTokenManager1.GetCachedToken(sta, appliesTo)
Syntax
'Declaration
Public Function GetCachedToken( _
ByVal sta As ISecurityTokenAssertion, _
ByVal appliesTo As EndpointReference _
) As SecurityContextToken
public SecurityContextToken GetCachedToken(
ISecurityTokenAssertion sta,
EndpointReference appliesTo
);
public: SecurityContextToken^ GetCachedToken(
ISecurityTokenAssertion^ sta,
EndpointReference^ appliesTo
);
public SecurityContextToken GetCachedToken(
ISecurityTokenAssertion sta,
EndpointReference appliesTo
);
public function GetCachedToken(
sta : ISecurityTokenAssertion,
appliesTo : EndpointReference
) : SecurityContextToken;
Parameters
- sta
An ISecurityTokenAssertion that specifies the policy the SecurityContextToken must adhere to.
- appliesTo
A EndpointReference that specifies the URL of the target Web service to which the SecurityContextToken is sent to.
Return Value
A SecurityContextToken from the cache that matches the specified criteria, or null if no match is found.
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
SecurityContextTokenManager Class
Microsoft.Web.Services2.Security.Tokens Namespace