Język

UserNameSecurityTokenProvider.GetTokenCore(TimeSpan) Metoda

Definicja

Pobiera token zabezpieczający na podstawie nazwy użytkownika i hasła określonego w konstruktorze.

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

Parametry

timeout
TimeSpan

Element TimeSpan określający wartość limitu czasu dla komunikatu, który pobiera token zabezpieczający.

Zwraca

Element SecurityToken reprezentujący token zabezpieczający, który ma być pobierany.

Uwagi

Metoda GetTokenCore jest wywoływana przez klasę ClientCredentials , gdy klient wysyła komunikat PROTOKOŁU SOAP i UserNameSecurityToken wymagany jest token zabezpieczający.

Metoda GetToken wywołuje metodę GetTokenCore .

Dotyczy