Defines the configuration specific to a security token service (STS).
Пространство имен: Microsoft.IdentityModel.Configuration
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

Использование

Visual Basic
Dim instance As SecurityTokenServiceConfiguration

Синтаксис

Visual Basic
Public Class SecurityTokenServiceConfiguration
		Inherits ServiceConfiguration
C#
public class SecurityTokenServiceConfiguration : ServiceConfiguration
C++
public ref class SecurityTokenServiceConfiguration : public ServiceConfiguration
J#
public class SecurityTokenServiceConfiguration extends ServiceConfiguration
JScript
public class SecurityTokenServiceConfiguration extends ServiceConfiguration

Примечания

Security token service configuration class derives from Service Configuration class, which is the base class that contains several properties such as Issuer Name, which is the name of the STS, Signing Credentials, that is the certificate used for signing the token before delivering it to relying party applications.

Security token service configuration defines the following settings that pertain to a security token service:

_defaultTokenLifetime
Type: TimeSpan Description: Defines the token life time. Default value is 10 hours.

_maximumTokenLifetime
Type: TimeSpan Description: Defines the maximum life time of a token issued by the STS. Default is 1 day.

_defaultTokenType
Type: string Description: Defines the type of tokens issued by the STS. WIF has built-in support for SAML 1.1 and SAML 2 tokens. Default token type is set to SAML 1.1.

_defaultSymmetricKeySizeInBits
Type: int Description: Defines the default symmetric key size, in bits. Default value is 256.

_defaultMaxSymmetricKeySizeInBits
Type: int Description: Defines the default maximum symmetric key size, in bits. Default value is 1024.

_endpoints
Type: Collection<ServiceHostEndpointConfiguration> Description: Collection of service host endpoints.

_securityTokenServiceType
Type: Type Description: Defines the type of service, this property must be set to the type of Security Token Service. Or else an ThrowHelperArgument exception is thrown with a message that type of Security Token Service is expected.

_tokenElementRequirement
Type: SecurityTokenRequirement Description: Defines the current token requirements.

_tokenElementHandlers Type: SecurityTokenHandlerCollection Description: Defines the collection of security token handlers.

_tokenElementSerializer
Type: SecurityTokenSerializer Description: Defines the security token serializer that can read and write key identifiers, key identifier clauses, and security tokens.

_tokenElementResolver
Type: SecurityTokenResolver Description: Defines the security token resolver, which is a utility class that can retrieve security tokens or keys when you have a key identifier.

_wsTrust13RequestSerializer
Type: WSTrust13RequestSerializer Description: Defines the WS-Trust 1.3 Request (RST) Serializer.

_wsTrust13ResponseSerializer
Type: WSTrust13ResponseSerializer Description: Defines the WS-Trust 1.3 Response (RSTR) Serializer.

_wsTrustFeb2005RequestSerializer
Type: WSTrustFeb2005RequestSerializer Description: Instance of the early version of WS-Trust protocol request serializer (WS-Trust Feb 2005).

_wsTrustFeb2005ResponseSerializer
Type: WSTrustFeb2005ResponseSerializer Description: Instance of the early version WS-Trust protocol response serializer.


Иерархия наследования

System.Object
   Microsoft.IdentityModel.Configuration.ServiceConfiguration
    Microsoft.IdentityModel.Configuration.SecurityTokenServiceConfiguration

Безопасность потоков

Любые открытые статические члены (Shared в Visual Basic) этого типа являются поточно-ориентированными.Любые члены экземпляров не являются гарантированно поточно-ориентированными.

Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

См. также