Connectivity Software User's Guide and Reference
CreateKerberosIdentity() Method



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.IdentityModel.Subject Namespace > UserIdentityInfo Class > CreateKerberosIdentity Method : CreateKerberosIdentity() Method
Creates a Kerberos (issued) token identity, using the current user's identity.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Public Overloads Shared Function CreateKerberosIdentity() As UserIdentityInfo
'Usage
 
Dim value As UserIdentityInfo
 
value = UserIdentityInfo.CreateKerberosIdentity()
[JetBrains.Annotations.NotNull()]
public static UserIdentityInfo CreateKerberosIdentity()
[JetBrains.Annotations.NotNull()]
public:
static UserIdentityInfo^ CreateKerberosIdentity(); 

Return Value

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

This method never returns null (Nothing in Visual Basic).

Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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