SecurityTokenRequirement Class

SecurityTokenRequirement Class

 

Specifies security token requirements.

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

System.Object
  System.IdentityModel.Selectors.SecurityTokenRequirement
    System.ServiceModel.Security.Tokens.ServiceModelSecurityTokenRequirement

public class SecurityTokenRequirement

NameDescription
System_CAPS_pubmethodSecurityTokenRequirement()

Initializes a new instance of the SecurityTokenRequirement class.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticIsOptionalTokenProperty

Gets a value of the token property if it is optional.

System_CAPS_pubpropertyKeySize

Gets or sets the required size of the key associated with a security token.

System_CAPS_pubpropertySystem_CAPS_staticKeySizeProperty

Gets a value that specifies the name of the index in the Properties collection for the KeySize property.

System_CAPS_pubpropertyKeyType

Gets or sets the type of key (asymmetric or symmetric) associated with a security token.

System_CAPS_pubpropertySystem_CAPS_staticKeyTypeProperty

Gets a value that specifies the name of the index in the Properties collection for the KeyType property.

System_CAPS_pubpropertyKeyUsage

Gets or sets a value that specifies how the key associated with a security token can be used.

System_CAPS_pubpropertySystem_CAPS_staticKeyUsageProperty

Gets a value that specifies the name of the index in the Properties collection for the KeyUsage property.

System_CAPS_pubpropertySystem_CAPS_staticPeerAuthenticationMode

Gets the name of the index in the Properties collection for a property that specifies the peer authentication method.

System_CAPS_pubpropertyProperties

Gets a collection of the non-static properties for the current SecurityTokenRequirement instance.

System_CAPS_pubpropertyRequireCryptographicToken

Gets or sets a value that indicates whether the security token must be capable of performing cryptographic operations, such as encryption.

System_CAPS_pubpropertySystem_CAPS_staticRequireCryptographicTokenProperty

Gets the name of the index in the Properties collection for the RequireCryptographicToken property.

System_CAPS_pubpropertyTokenType

Gets or sets the required security token type.

System_CAPS_pubpropertySystem_CAPS_staticTokenTypeProperty

Gets a value that specifies the name of the index in the Properties collection for the TokenType property.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetProperty<TValue>(String)

Gets the specified property for the current SecurityTokenRequirement instance.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTryGetProperty<TValue>(String, TValue)

Gets the specified property for the current SecurityTokenRequirement instance.

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
Available since 3.0

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

Return to top
Show:
© 2016 Microsoft