Export (0) Print
Expand All

SecurityTokenResolver Class

Represents a utility class that can retrieve security tokens or keys when you have a key identifier or key identifier clause.

Namespace:  System.IdentityModel.Selectors
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public abstract class SecurityTokenResolver

The SecurityTokenResolver type exposes the following members.

  NameDescription
Protected methodSecurityTokenResolverInitializes a new instance of the SecurityTokenResolver class.
Top

  NameDescription
Public methodStatic memberCreateDefaultSecurityTokenResolverCreates a default security token resolver for the specified security tokens.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodResolveSecurityKeyObtains the key that is referenced in the specified key identifier clause.
Public methodResolveToken(SecurityKeyIdentifier)Retrieves a security token that matches one of the security key identifier clauses contained within the specified key identifier.
Public methodResolveToken(SecurityKeyIdentifierClause)Retrieves the security token that matches the specified key identifier clause.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryResolveSecurityKeyAttempts to retrieve the key that is referenced in the specified key identifier clause.
Protected methodTryResolveSecurityKeyCoreAttempts to retrieve the key that is referenced in the specified key identifier clause.
Public methodTryResolveToken(SecurityKeyIdentifier, SecurityToken)Attempts to retrieve the security token that matches one of the key identifier clauses contained within the specified key identifier.
Public methodTryResolveToken(SecurityKeyIdentifierClause, SecurityToken)Attempts to retrieve the security token that matches the specified key identifier clause.
Protected methodTryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)When overridden in a derived class, attempts to retrieve the security token that matches at least one of the key identifier clauses contained within the specified key identifier.
Protected methodTryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)When overridden in a derived class, attempts to resolve the security token that matches the specified key identifier clause.
Top

Use the SecurityTokenResolver class to retrieve a key or security token when you have a key identifier or key identifier clause. The ResolveToken and TryResolveToken methods retrieve a token given that there is a key identifier or key identifier clause. The ResolveSecurityKey and TryResolveSecurityKey retrieve a key given that there is a key identifier clause. The methods with a Try prefix return false when the retrieval is unsuccessful, whereas the methods without a Try prefix throw an exception.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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

Community Additions

ADD
Show:
© 2014 Microsoft