IssuedSecurityTokenProvider.GetTokenCore(TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om