SecurityTokenRequirement Classe
Definição
Especifica os requisitos de token de segurança.Specifies security token requirements.
public ref class SecurityTokenRequirement
public class SecurityTokenRequirement
type SecurityTokenRequirement = class
Public Class SecurityTokenRequirement
- Herança
-
SecurityTokenRequirement
- Derivado
Exemplos
ClientCredentialsSecurityTokenManager
ServiceCredentialsSecurityTokenManager
CreateSecurityTokenAuthenticator(SecurityTokenRequirement, SecurityTokenResolver)
CreateSecurityTokenProvider(SecurityTokenRequirement)
CreateSecurityTokenAuthenticator(SecurityTokenRequirement, SecurityTokenResolver)
CreateSecurityTokenProvider(SecurityTokenRequirement)
Comentários
Normalmente, o código do aplicativo não precisa usar a SecurityTokenRequirement classe, a menos que um token de segurança personalizado, um Gerenciador de token de segurança, um provedor de token de segurança ou um autenticador de token de segurança sejam criados.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. A SecurityTokenRequirement classe é usada por um Gerenciador de token de segurança para especificar o que é necessário para um token de segurança, como o tamanho da chave, o tipo de chave e como a chave pode ser usada.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. Quando um token de segurança pode ser identificado que corresponde aos critérios especificados, um SecurityTokenProvider e SecurityTokenAuthenticator pode ser obtido para fornecer tokens de segurança para mensagens SOAP de saída e para autenticar tokens de segurança para mensagens SOAP de entrada, respectivamente.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. Por exemplo, o Gerenciador de token de segurança padrão para mensagens SOAP de saída tem o CreateSecurityTokenProvider(SecurityTokenRequirement) método que usa um SecurityTokenRequirement parâmetro que pode ser chamado para obter um provedor de token de segurança que corresponda aos critérios especificados no requisito de token de segurança.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.
Construtores
| SecurityTokenRequirement() |
Inicializa uma nova instância da classe SecurityTokenRequirement.Initializes a new instance of the SecurityTokenRequirement class. |
Propriedades
| IsOptionalTokenProperty |
Obterá um valor da propriedade token, se ele for opcional.Gets a value of the token property if it is optional. |
| KeySize |
Obtém ou define o tamanho necessário da chave associada a um token de segurança.Gets or sets the required size of the key associated with a security token. |
| KeySizeProperty |
Obtém um valor que especifica o nome do índice na coleção Properties para a propriedade KeySize.Gets a value that specifies the name of the index in the Properties collection for the KeySize property. |
| KeyType |
Obtém ou define o tipo de chave (simétrica ou assimétrica) associado a um token de segurança.Gets or sets the type of key (asymmetric or symmetric) associated with a security token. |
| KeyTypeProperty |
Obtém um valor que especifica o nome do índice na coleção Properties para a propriedade KeyType.Gets a value that specifies the name of the index in the Properties collection for the KeyType property. |
| KeyUsage |
Obtém ou define um valor que especifica como a chave associada a um token de segurança pode ser usada.Gets or sets a value that specifies how the key associated with a security token can be used. |
| KeyUsageProperty |
Obtém um valor que especifica o nome do índice na coleção Properties para a propriedade KeyUsage.Gets a value that specifies the name of the index in the Properties collection for the KeyUsage property. |
| PeerAuthenticationMode |
Obtém o nome do índice na coleção Properties para uma propriedade que especifica o método de autenticação par.Gets the name of the index in the Properties collection for a property that specifies the peer authentication method. |
| Properties |
Obtém uma coleção de propriedades não estáticas para a instância SecurityTokenRequirement atual.Gets a collection of the non-static properties for the current SecurityTokenRequirement instance. |
| RequireCryptographicToken |
Obtém ou define um valor que indica se o token de segurança deve ser capaz de executar operações criptográficas, como a criptografia.Gets or sets a value that indicates whether the security token must be capable of performing cryptographic operations, such as encryption. |
| RequireCryptographicTokenProperty |
Obtém o nome do índice na coleção de Properties para a propriedade RequireCryptographicToken.Gets the name of the index in the Properties collection for the RequireCryptographicToken property. |
| TokenType |
Obtém ou define o tipo de token de segurança necessário.Gets or sets the required security token type. |
| TokenTypeProperty |
Obtém um valor que especifica o nome do índice na coleção Properties para a propriedade TokenType.Gets a value that specifies the name of the index in the Properties collection for the TokenType property. |
Métodos
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetProperty<TValue>(String) |
Obtém a propriedade especificada para a instância SecurityTokenRequirement atual.Gets the specified property for the current SecurityTokenRequirement instance. |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
| TryGetProperty<TValue>(String, TValue) |
Obtém a propriedade especificada para a instância SecurityTokenRequirement atual.Gets the specified property for the current SecurityTokenRequirement instance. |