<PackageReference Include="System.ServiceModel.Primitives" Version="8.1.2" />

System.IdentityModel.Selectors.SecurityTokenProvider

public abstract class SecurityTokenProvider
public virtual bool SupportsTokenCancellation { get; }

public virtual bool SupportsTokenRenewal { get; }

public IAsyncResult BeginCancelToken(TimeSpan timeout, SecurityToken token, AsyncCallback callback, object state)

protected virtual IAsyncResult BeginCancelTokenCore(TimeSpan timeout, SecurityToken token, AsyncCallback callback, object state)

public IAsyncResult BeginGetToken(TimeSpan timeout, AsyncCallback callback, object state)

protected virtual IAsyncResult BeginGetTokenCore(TimeSpan timeout, AsyncCallback callback, object state)

public IAsyncResult BeginRenewToken(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state)

protected virtual IAsyncResult BeginRenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed, AsyncCallback callback, object state)

public void CancelToken(TimeSpan timeout, SecurityToken token)

protected virtual void CancelTokenCore(TimeSpan timeout, SecurityToken token)

public void EndCancelToken(IAsyncResult result)

protected virtual void EndCancelTokenCore(IAsyncResult result)

protected virtual SecurityToken EndGetTokenCore(IAsyncResult result)

protected virtual SecurityToken EndRenewTokenCore(IAsyncResult result)

protected abstract SecurityToken GetTokenCore(TimeSpan timeout)

public SecurityToken RenewToken(TimeSpan timeout, SecurityToken tokenToBeRenewed)

protected virtual SecurityToken RenewTokenCore(TimeSpan timeout, SecurityToken tokenToBeRenewed)