Export (0) Print
Expand All

SecurityTokenRequirement Class

Specifies security token requirements.

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

public class SecurityTokenRequirement

The SecurityTokenRequirement type exposes the following members.

  NameDescription
Public methodSecurityTokenRequirementInitializes a new instance of the SecurityTokenRequirement class.
Top

  NameDescription
Public propertyKeySizeGets or sets the required size of the key associated with a security token.
Public propertyStatic memberKeySizePropertyGets a value that specifies the name of the index in the Properties collection for the KeySize property.
Public propertyKeyTypeGets or sets the type of key (asymmetric or symmetric) associated with a security token.
Public propertyStatic memberKeyTypePropertyGets a value that specifies the name of the index in the Properties collection for the KeyType property.
Public propertyKeyUsageGets or sets a value that specifies how the key associated with a security token can be used.
Public propertyStatic memberKeyUsagePropertyGets a value that specifies the name of the index in the Properties collection for the KeyUsage property.
Public propertyStatic memberPeerAuthenticationModeGets the name of the index in the Properties collection for a property that specifies the peer authentication method.
Public propertyPropertiesGets a collection of the non-static properties for the current SecurityTokenRequirement instance.
Public propertyRequireCryptographicTokenGets or sets a value that indicates whether the security token must be capable of performing cryptographic operations, such as encryption.
Public propertyStatic memberRequireCryptographicTokenPropertyGets the name of the index in the Properties collection for the RequireCryptographicToken property.
Public propertyTokenTypeGets or sets the required security token type.
Public propertyStatic memberTokenTypePropertyGets a value that specifies the name of the index in the Properties collection for the TokenType property.
Top

  NameDescription
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 methodGetProperty<TValue>Gets the specified property for the current SecurityTokenRequirement instance.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetProperty<TValue>Gets the specified property for the current SecurityTokenRequirement instance.
Top

Application code typically does not need to use the SecurityTokenRequirement class, unless a custom security token, security token manager, security token provider, or security token authenticator are created. The SecurityTokenRequirement class is used by a security token manager to specify what is required of a security token, such as the key size, key type, and how the key can be used. When a security token can be identified that matches the specified criteria, a SecurityTokenProvider and SecurityTokenAuthenticator can be obtained to provide security tokens for outgoing SOAP messages and to authenticate security tokens for incoming SOAP messages, respectively. For example, the default security token manager for outgoing SOAP messages has the CreateSecurityTokenProvider(SecurityTokenRequirement) method that takes a SecurityTokenRequirement parameter that can be called to obtain a security token provider that matches the criteria specified in the security token requirement.

.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