SPPassiveIssuerTokenResolver.TryResolveTokenCore method (SecurityKeyIdentifier, SecurityToken)

Retrieves the security token that matches one of the key identifier clauses contained within the specified key identifier.

Namespace:  Microsoft.SharePoint.IdentityModel
Assembly:  Microsoft.SharePoint.IdentityModel (in Microsoft.SharePoint.IdentityModel.dll)

Syntax

'Declaration
Protected Overrides Function TryResolveTokenCore ( _
    keyIdentifier As SecurityKeyIdentifier, _
    <OutAttribute> ByRef token As SecurityToken _
) As Boolean
'Usage
Dim keyIdentifier As SecurityKeyIdentifier
Dim token As SecurityToken
Dim returnValue As Boolean

returnValue = Me.TryResolveTokenCore(keyIdentifier, _
    token)
protected override bool TryResolveTokenCore(
    SecurityKeyIdentifier keyIdentifier,
    out SecurityToken token
)

Parameters

Return value

Type: System.Boolean
true if a security token is retrieved for the specified key identifier; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

keyIdentifier is null .

Remarks

This override calls the TryResolveToken(SecurityKeyIdentifierClause, SecurityToken) method of the base class to retrieve the security token that matches one of the key identifier clauses contained within the specified key identifier.

See also

Reference

SPPassiveIssuerTokenResolver class

SPPassiveIssuerTokenResolver members

TryResolveTokenCore overload

Microsoft.SharePoint.IdentityModel namespace