Connectivity Software User's Guide and Reference
SelectTokenInfoPolicy Method



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.IdentityModel.Subject Namespace > TokenSelectionPolicy Class : SelectTokenInfoPolicy Method
Token info policies available.

The value of this parameter cannot be null (Nothing in Visual Basic).

User identity info.

The value of this parameter cannot be null (Nothing in Visual Basic).

Outline of the candidate selection process.

The value of this parameter cannot be null (Nothing in Visual Basic).

The token info policy.

The value of this parameter can be null (Nothing in Visual Basic).

Selects a security token policy.
Syntax
'Declaration
 
Public Overridable Function SelectTokenInfoPolicy( _
   ByVal tokenInfoPolicies As IEnumerable(Of TokenInfoPolicy), _
   ByVal userIdentityInfo As UserIdentityInfo, _
   ByRef candidateReport As String, _
   ByRef tokenInfoPolicy As TokenInfoPolicy _
) As Boolean
'Usage
 
Dim instance As TokenSelectionPolicy
Dim tokenInfoPolicies As IEnumerable(Of TokenInfoPolicy)
Dim userIdentityInfo As UserIdentityInfo
Dim candidateReport As String
Dim tokenInfoPolicy As TokenInfoPolicy
Dim value As Boolean
 
value = instance.SelectTokenInfoPolicy(tokenInfoPolicies, userIdentityInfo, candidateReport, tokenInfoPolicy)

Parameters

tokenInfoPolicies
Token info policies available.

The value of this parameter cannot be null (Nothing in Visual Basic).

userIdentityInfo
User identity info.

The value of this parameter cannot be null (Nothing in Visual Basic).

candidateReport
Outline of the candidate selection process.

The value of this parameter cannot be null (Nothing in Visual Basic).

tokenInfoPolicy
The token info policy.

The value of this parameter can be null (Nothing in Visual Basic).

Return Value

Returns true if the functions has been successfully selected; false otherwise.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also