OPC Studio User's Guide and Reference
CreateKerberosIdentity(NetworkCredential2) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.IdentityModel.User Namespace > UserIdentity Class > CreateKerberosIdentity Method : CreateKerberosIdentity(NetworkCredential2) Method
The identity of the security token.
Creates a Kerberos (issued) token identity, specifying it explicitly.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Overloads Shared Function CreateKerberosIdentity( _
   ByVal networkCredential As NetworkCredential2 _
) As UserIdentity
'Usage
 
Dim networkCredential As NetworkCredential2
Dim value As UserIdentity
 
value = UserIdentity.CreateKerberosIdentity(networkCredential)
[NotNull()]
public static UserIdentity CreateKerberosIdentity( 
   NetworkCredential2 networkCredential
)
[NotNull()]
public:
static UserIdentity^ CreateKerberosIdentity( 
   NetworkCredential2^ networkCredential
) 

Parameters

networkCredential
The identity of the security token.

Return Value

Returns a new user identity, configured with Kerberos user token only.
Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

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.

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

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.

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