Connectivity Software User's Guide and Reference
AllowedUserIdentityTokenTypes Property



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA.Engine Namespace > EasyUAServerEngineParameters Class : AllowedUserIdentityTokenTypes Property
Defines the user identity token types that the server exposes and the clients are allowed to use.
Syntax
'Declaration
 
Public Property AllowedUserIdentityTokenTypes As UserIdentityTokenTypes
'Usage
 
Dim instance As EasyUAServerEngineParameters
Dim value As UserIdentityTokenTypes
 
instance.AllowedUserIdentityTokenTypes = value
 
value = instance.AllowedUserIdentityTokenTypes
public UserIdentityTokenTypes AllowedUserIdentityTokenTypes {get; set;}
public:
property UserIdentityTokenTypes AllowedUserIdentityTokenTypes {
   UserIdentityTokenTypes get();
   void set (    UserIdentityTokenTypes value);
}

Property Value

The default value of this property is All (UserIdentityTokenTypes.All).

Exceptions
ExceptionDescription

An invalid enumeration value was used.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Remarks

The OpcLabs.EasyOpc.UA.EasyUAServerCore objects cannot use the user identity token types that are not in AllowedUserIdentityTokenTypes, even if they specify them in their OpcLabs.EasyOpc.UA.IEasyUAServer.UserIdentityTokenTypes. This means that the AllowedUserIdentityTokenTypes can be used to impose a global restriction. For example, setting AllowedUserIdentityTokenTypes to exclude OpcLabs.BaseLib.Security.User.UserIdentityTokenTypes.Anonymous will prohibit the server objects from accepting anonymous connections.

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