UserNameSecurityTokenProvider.GetTokenCore(TimeSpan) Método
Definição
Obtém um token de segurança com base no nome de usuário e na senha especificados no construtor.Gets a security token based on the username and password specified in the constructor.
protected:
override System::IdentityModel::Tokens::SecurityToken ^ GetTokenCore(TimeSpan timeout);
protected override System.IdentityModel.Tokens.SecurityToken GetTokenCore (TimeSpan timeout);
override this.GetTokenCore : TimeSpan -> System.IdentityModel.Tokens.SecurityToken
Protected Overrides Function GetTokenCore (timeout As TimeSpan) As SecurityToken
Parâmetros
- timeout
- TimeSpan
Um TimeSpan que especifica o valor de tempo limite da mensagem que obtém o token de segurança.A TimeSpan that specifies the timeout value for the message that gets the security token.
Retornos
O SecurityToken que representa o token de segurança a ser obtido.The SecurityToken that represents the security token to get.
Comentários
O GetTokenCore método é chamado pela ClientCredentials classe quando um cliente envia uma mensagem SOAP e um UserNameSecurityToken token de segurança é necessário.The GetTokenCore method is called by the ClientCredentials class when a client sends a SOAP message and an UserNameSecurityToken security token is needed.
O GetToken método chama o GetTokenCore método.The GetToken method calls the GetTokenCore method.