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
keyIdentifier
Type: System.IdentityModel.Tokens.SecurityKeyIdentifierThe key identifier for which the security token is created.
token
Type: System.IdentityModel.Tokens.SecurityTokenWhen this method returns, contains a security token that represents the specified key identifier. This parameter is passed uninitialized.
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