Edit

Bagikan melalui


IssuedSecurityTokenProvider Class

Definition

Represents a token provider for issued security tokens.

public ref class IssuedSecurityTokenProvider : System::IdentityModel::Selectors::SecurityTokenProvider, System::ServiceModel::ICommunicationObject
public class IssuedSecurityTokenProvider : System.IdentityModel.Selectors.SecurityTokenProvider, System.ServiceModel.ICommunicationObject
type IssuedSecurityTokenProvider = class
    inherit SecurityTokenProvider
    interface ICommunicationObject
Public Class IssuedSecurityTokenProvider
Inherits SecurityTokenProvider
Implements ICommunicationObject
Inheritance
IssuedSecurityTokenProvider
Implements

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.

Constructors

IssuedSecurityTokenProvider()

Initializes a new instance of the IssuedSecurityTokenProvider class.

Properties

CacheIssuedTokens

Gets or sets a value that indicates whether the issued tokens are cached.

DefaultCloseTimeout

Gets the default time-out for closing the connection.

DefaultOpenTimeout

Gets the default time-out for opening the connection.

IdentityVerifier

Gets or sets the identity verifier.

IssuedTokenRenewalThresholdPercentage

Gets or sets the issued token renewal threshold percentage.

IssuerAddress

Gets or sets the issuer address.

IssuerBinding

Gets or sets the issuer binding.

IssuerChannelBehaviors

Gets the issuer channel behaviors.

KeyEntropyMode

Gets or sets the key entropy mode.

MaxIssuedTokenCachingTime

Gets or sets the maximum time that an issued token will be cached.

MessageSecurityVersion

Gets or sets the message security version.

SecurityAlgorithmSuite

Gets or sets the security algorithm suite.

SecurityTokenSerializer

Gets or sets the security token serializer.

State

Gets the communication state.

SupportsTokenCancellation

Gets a value that indicates whether token cancellation is supported.

SupportsTokenRenewal

Gets a value that indicates whether the security token is renewable.

(Inherited from SecurityTokenProvider)
TargetAddress

Gets or sets the target address.

TokenRequestParameters

Gets the token request parameters.

Methods

Abort()

Aborts the provider.

BeginCancelToken(TimeSpan, SecurityToken, AsyncCallback, Object)

Begins an asynchronous operation to cancel a security token.

(Inherited from SecurityTokenProvider)
BeginCancelTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object)

Begins an asynchronous operation to cancel a security token.

(Inherited from SecurityTokenProvider)
BeginClose(AsyncCallback, Object)

Asynchronously begins closing the provider.

BeginClose(TimeSpan, AsyncCallback, Object)

Asynchronously begins closing the provider.

BeginGetToken(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to get a security token.

(Inherited from SecurityTokenProvider)
BeginGetTokenCore(TimeSpan, AsyncCallback, Object)

Asynchronously begins getting the token core.

BeginOpen(AsyncCallback, Object)

Asynchronously begins opening the provider.

BeginOpen(TimeSpan, AsyncCallback, Object)

Asynchronously begins opening the provider.

BeginRenewToken(TimeSpan, SecurityToken, AsyncCallback, Object)

Begins an asynchronous operation that renews a security token.

(Inherited from SecurityTokenProvider)
BeginRenewTokenCore(TimeSpan, SecurityToken, AsyncCallback, Object)

Begins an asynchronous operation that renews a security token.

(Inherited from SecurityTokenProvider)
CancelToken(TimeSpan, SecurityToken)

Cancels a security token.

(Inherited from SecurityTokenProvider)
CancelTokenAsync(TimeSpan, SecurityToken)

Cancels a security token.

(Inherited from SecurityTokenProvider)
CancelTokenCore(TimeSpan, SecurityToken)

Cancels a security token.

(Inherited from SecurityTokenProvider)
CancelTokenCoreAsync(TimeSpan, SecurityToken)

Cancels a security token.

(Inherited from SecurityTokenProvider)
Close()

Closes the provider.

Close(TimeSpan)

Closes the provider.

Dispose()

Releases all resources used by the current instance of the IssuedSecurityTokenProvider class.

EndCancelToken(IAsyncResult)

Completes an asynchronous operation to cancel a security token.

(Inherited from SecurityTokenProvider)
EndCancelTokenCore(IAsyncResult)

Completes an asynchronous operation to cancel a security token.

(Inherited from SecurityTokenProvider)
EndClose(IAsyncResult)

Ends the asynchronous call for closing the provider.

EndGetToken(IAsyncResult)

Completes an asynchronous operation to get a security token.

(Inherited from SecurityTokenProvider)
EndGetTokenCore(IAsyncResult)

Ends the asynchronous call for getting the token core.

EndOpen(IAsyncResult)

Ends the asynchronous call for opening the provider.

EndRenewToken(IAsyncResult)

Completes an asynchronous operation to renew a security token.

(Inherited from SecurityTokenProvider)
EndRenewTokenCore(IAsyncResult)

Completes an asynchronous operation to renew the security token.

(Inherited from SecurityTokenProvider)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetToken(TimeSpan)

Gets a security token.

(Inherited from SecurityTokenProvider)
GetTokenAsync(TimeSpan)

Gets a security token.

(Inherited from SecurityTokenProvider)
GetTokenCore(TimeSpan)

Gets the token core.

GetTokenCoreAsync(TimeSpan)

Gets a security token.

(Inherited from SecurityTokenProvider)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Open()

Opens the provider.

Open(TimeSpan)

Opens the provider.

RenewToken(TimeSpan, SecurityToken)

Renews a security token.

(Inherited from SecurityTokenProvider)
RenewTokenAsync(TimeSpan, SecurityToken)

Renews a security token.

(Inherited from SecurityTokenProvider)
RenewTokenCore(TimeSpan, SecurityToken)

Renews a security token.

(Inherited from SecurityTokenProvider)
RenewTokenCoreAsync(TimeSpan, SecurityToken)

Renews a security token.

(Inherited from SecurityTokenProvider)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

Closed

Provides registration and deregistration of event handler for the Closed event.

Closing

Provides registration and deregistration of event handler for the Closing event.

Faulted

Provides registration and deregistration of event handler for the Faulted event.

Opened

Provides registration and deregistration of event handler for the Opened event.

Opening

Provides registration and deregistration of event handler for the Opening event.

Applies to