OPC Studio User's Guide and Reference
GetSecurityToken Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.IdentityModel.User Namespace > TokenSelectionPolicy Class : GetSecurityToken Method

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

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

Infrastructure.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Overridable Function GetSecurityToken( _
   ByVal tokenInfo As TokenInfo, _
   ByVal tokenInfoPolicy As TokenInfoPolicy _
) As SecurityToken
'Usage
 
Dim instance As TokenSelectionPolicy
Dim tokenInfo As TokenInfo
Dim tokenInfoPolicy As TokenInfoPolicy
Dim value As SecurityToken
 
value = instance.GetSecurityToken(tokenInfo, tokenInfoPolicy)
[CanBeNull()]
public virtual SecurityToken GetSecurityToken( 
   TokenInfo tokenInfo,
   TokenInfoPolicy tokenInfoPolicy
)
[CanBeNull()]
public:
virtual SecurityToken^ GetSecurityToken( 
   TokenInfo^ tokenInfo,
   TokenInfoPolicy^ tokenInfoPolicy
) 

Parameters

tokenInfo

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

tokenInfoPolicy

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

Return Value

This method can return null (Nothing in Visual Basic).

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