Export (0) Print
Expand All

SecurityContextSecurityTokenResolver Class

Resolves security context tokens.

System.Object
  System.IdentityModel.Selectors.SecurityTokenResolver
    System.ServiceModel.Security.Tokens.SecurityContextSecurityTokenResolver

Namespace:  System.ServiceModel.Security.Tokens
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public class SecurityContextSecurityTokenResolver : SecurityTokenResolver, 
	ISecurityContextSecurityTokenCache

The SecurityContextSecurityTokenResolver type exposes the following members.

  NameDescription
Public methodSecurityContextSecurityTokenResolver(Int32, Boolean)Initializes a new instance of the SecurityContextSecurityTokenResolver class.
Public methodSecurityContextSecurityTokenResolver(Int32, Boolean, TimeSpan)Initializes a new instance of the SecurityContextSecurityTokenResolver class with the specified security context cache capacity and clock skew maximum.
Top

  NameDescription
Public propertyClockSkewReturns the maximum allowable time difference between client and server clock settings.
Public propertyRemoveOldestTokensOnCacheFullGets a value that indicates whether the oldest tokens should be removed when the cache is full.
Public propertySecurityContextTokenCacheCapacityGets the security context token cache size.
Top

  NameDescription
Public methodAddContextAdds a security context security token to the token cache.
Public methodClearContextsClears the token cache of content.
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 methodGetAllContextsGets a collection of security context security token IDs that match a specified context ID.
Public methodGetContextGets the security context security token ID that matches a specified context ID and generation.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodLoadCustomConfigurationWhen overridden in a derived class, loads custom configuration from XML. (Inherited from SecurityTokenResolver.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveAllContextsRemoves all tokens from the cache that match a given context ID.
Public methodRemoveContextRemoves the token from the cache that matches a given context ID and generation.
Public methodResolveSecurityKeyObtains the key that is referenced in the specified key identifier clause. (Inherited from SecurityTokenResolver.)
Public methodResolveToken(SecurityKeyIdentifier)Retrieves a security token that matches one of the security key identifier clauses contained within the specified key identifier. (Inherited from SecurityTokenResolver.)
Public methodResolveToken(SecurityKeyIdentifierClause)Retrieves the security token that matches the specified key identifier clause. (Inherited from SecurityTokenResolver.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryAddContextAttempts to add a token to the cache.
Public methodTryResolveSecurityKeyAttempts to retrieve the key that is referenced in the specified key identifier clause. (Inherited from SecurityTokenResolver.)
Protected methodTryResolveSecurityKeyCoreAttempts to resolve the security key core, given a specified key identifier clause. (Overrides SecurityTokenResolver.TryResolveSecurityKeyCore(SecurityKeyIdentifierClause, SecurityKey).)
Public methodTryResolveToken(SecurityKeyIdentifier, SecurityToken)Attempts to retrieve the security token that matches one of the key identifier clauses contained within the specified key identifier. (Inherited from SecurityTokenResolver.)
Public methodTryResolveToken(SecurityKeyIdentifierClause, SecurityToken)Attempts to retrieve the security token that matches the specified key identifier clause. (Inherited from SecurityTokenResolver.)
Protected methodTryResolveTokenCore(SecurityKeyIdentifier, SecurityToken)Attempts to resolve the token, given a specified key identifier. (Overrides SecurityTokenResolver.TryResolveTokenCore(SecurityKeyIdentifier, SecurityToken).)
Protected methodTryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken)Attempts to resolve the token, given a specified key identifier clause. (Overrides SecurityTokenResolver.TryResolveTokenCore(SecurityKeyIdentifierClause, SecurityToken).)
Public methodUpdateContextCachingTimeUpdates the expiration date for a token in the cache.
Top

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft