Show / Hide Table of Contents

Class LinuxUdsPeerIdentity

Represents identity of the peer interacting via Unix Domain Socket on Linux.

Inheritance
object
LinuxUdsPeerIdentity
Implements
IIdentity
IEquatable<LinuxUdsPeerIdentity>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotNext.Security.Principal
Assembly: DotNext.MaintenanceServices.dll
Syntax
[CLSCompliant(false)]
public sealed record LinuxUdsPeerIdentity : IIdentity, IEquatable<LinuxUdsPeerIdentity>
Remarks

This class is supported on Linux systems only.

Properties

| Edit this page View Source

DisplayName

Gets user information, if available.

Declaration
public string? DisplayName { get; }
Property Value
Type Description
string
| Edit this page View Source

GroupId

Gets group ID of the process identified by ProcessId.

Declaration
public uint GroupId { get; }
Property Value
Type Description
uint
| Edit this page View Source

IsAuthenticated

Gets a value that indicates whether the user has been authenticated.

Declaration
public bool IsAuthenticated { get; init; }
Property Value
Type Description
bool
| Edit this page View Source

Name

Gets the name of the current user.

Declaration
public string? Name { get; }
Property Value
Type Description
string

The name of the user on whose behalf the code is running.

| Edit this page View Source

ProcessId

Gets calling process ID.

Declaration
public uint ProcessId { get; }
Property Value
Type Description
uint
| Edit this page View Source

UserId

Gets user ID of the process identified by ProcessId.

Declaration
public uint UserId { get; }
Property Value
Type Description
uint

Implements

IIdentity
IEquatable<T>

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.GetUserData<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
ExpressionBuilder.Const<T>(T)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan, CancellationToken)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾