IssuedSecurityTokenProvider.GetTokenCore(TimeSpan) Method

Definition

Gets the token core.

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

Parameters

timeout
TimeSpan

A TimeSpan after which the call times out.

Returns

The SecurityToken that represents the token core.

Remarks

Care must be taken when caching and reusing security tokens that are returned from the GetTokenCore method, because the security token might become unusable when the channel that the token provider is associated with is closed. The security token becomes unusable when the requested key type is asymmetric and the thread is running under impersonated context when the GetTokenCore method is called.

Applies to