Redigera

Dela via


SecurityTokenResolver Class

Definition

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

public ref class SecurityTokenResolver abstract
public ref class SecurityTokenResolver abstract : System::IdentityModel::Configuration::ICustomIdentityConfiguration
public abstract class SecurityTokenResolver
public abstract class SecurityTokenResolver : System.IdentityModel.Configuration.ICustomIdentityConfiguration
type SecurityTokenResolver = class
type SecurityTokenResolver = class
    interface ICustomIdentityConfiguration
Public MustInherit Class SecurityTokenResolver
Public MustInherit Class SecurityTokenResolver
Implements ICustomIdentityConfiguration
Inheritance
SecurityTokenResolver
Derived
Implements

Remarks

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.

Constructors

SecurityTokenResolver()

Initializes a new instance of the SecurityTokenResolver class.

Methods

CreateDefaultSecurityTokenResolver(ReadOnlyCollection<SecurityToken>, Boolean)

Creates a default security token resolver for the specified security tokens.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
LoadCustomConfiguration(XmlNodeList)

When overridden in a derived class, loads custom configuration from XML.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ResolveSecurityKey(SecurityKeyIdentifierClause)

Obtains the key that is referenced in the specified key identifier clause.

ResolveToken(SecurityKeyIdentifier)

Retrieves a security token that matches one of the security key identifier clauses contained within the specified key identifier.

ResolveToken(SecurityKeyIdentifierClause)

Retrieves the security token that matches the specified key identifier clause.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryResolveSecurityKey(SecurityKeyIdentifierClause, SecurityKey)

Attempts to retrieve the key that is referenced in the specified key identifier clause.

TryResolveSecurityKeyCore(SecurityKeyIdentifierClause, SecurityKey)

Attempts to retrieve the key that is referenced in the specified key identifier clause.

TryResolveToken(SecurityKeyIdentifier, SecurityToken)

Attempts to retrieve the security token that matches one of the key identifier clauses contained within the specified key identifier.

TryResolveToken(SecurityKeyIdentifierClause, SecurityToken)

Attempts to retrieve the security token that matches the specified key identifier clause.

TryResolveTokenCore(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.

TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)

When overridden in a derived class, attempts to resolve the security token that matches the specified key identifier clause.

Applies to