Redigera

Dela via


SamlSecurityTokenAuthenticator.ResolveIdentity Method

Definition

Resolves the identity associated with the passed in security token or the security key identifier using the supporting token authenticators specified when the SamlSecurityTokenAuthenticator instance was created and returns it as an IIdentity.

Overloads

ResolveIdentity(SecurityKeyIdentifier)

Resolves the identity associated with the specified key identifier using the supporting security token authenticators provided when the SamlSecurityTokenAuthenticator instance was created and returns it as an IIdentity.

ResolveIdentity(SecurityToken)

Resolves the identity associated with the specified security token using the supporting security token authenticators provided when the SamlSecurityTokenAuthenticator instance was created and returns it as an IIdentity.

ResolveIdentity(SecurityKeyIdentifier)

Resolves the identity associated with the specified key identifier using the supporting security token authenticators provided when the SamlSecurityTokenAuthenticator instance was created and returns it as an IIdentity.

public:
 virtual System::Security::Principal::IIdentity ^ ResolveIdentity(System::IdentityModel::Tokens::SecurityKeyIdentifier ^ keyIdentifier);
public virtual System.Security.Principal.IIdentity ResolveIdentity (System.IdentityModel.Tokens.SecurityKeyIdentifier keyIdentifier);
abstract member ResolveIdentity : System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.Security.Principal.IIdentity
override this.ResolveIdentity : System.IdentityModel.Tokens.SecurityKeyIdentifier -> System.Security.Principal.IIdentity
Public Overridable Function ResolveIdentity (keyIdentifier As SecurityKeyIdentifier) As IIdentity

Parameters

keyIdentifier
SecurityKeyIdentifier

A SecurityKeyIdentifier to get the identity of.

Returns

An IIdentity that represents the identity of the specified key identifier.

Remarks

SamlSecurityToken security tokens are cached using their key identifier.

Applies to

ResolveIdentity(SecurityToken)

Resolves the identity associated with the specified security token using the supporting security token authenticators provided when the SamlSecurityTokenAuthenticator instance was created and returns it as an IIdentity.

public:
 virtual System::Security::Principal::IIdentity ^ ResolveIdentity(System::IdentityModel::Tokens::SecurityToken ^ token);
public virtual System.Security.Principal.IIdentity ResolveIdentity (System.IdentityModel.Tokens.SecurityToken token);
abstract member ResolveIdentity : System.IdentityModel.Tokens.SecurityToken -> System.Security.Principal.IIdentity
override this.ResolveIdentity : System.IdentityModel.Tokens.SecurityToken -> System.Security.Principal.IIdentity
Public Overridable Function ResolveIdentity (token As SecurityToken) As IIdentity

Parameters

token
SecurityToken

The SecurityToken to get the identity of.

Returns

An IIdentity that represents the identity of the specified security token.

Applies to