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.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
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

View Source

DisplayName

Gets user information, if available.

Declaration
public string? DisplayName { get; }
Property Value
Type Description
string
View Source

GroupId

Gets group ID of the process identified by ProcessId.

Declaration
public uint GroupId { get; }
Property Value
Type Description
uint
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
View Source

Name

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

ProcessId

Gets calling process ID.

Declaration
public uint ProcessId { get; }
Property Value
Type Description
uint
View Source

UserId

Gets user ID of the process identified by ProcessId.

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

Methods

View Source

Equals(LinuxUdsPeerIdentity?)

Declaration
public bool Equals(LinuxUdsPeerIdentity? other)
Parameters
Type Name Description
LinuxUdsPeerIdentity other
Returns
Type Description
bool
View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(LinuxUdsPeerIdentity?, LinuxUdsPeerIdentity?)

Declaration
public static bool operator ==(LinuxUdsPeerIdentity? left, LinuxUdsPeerIdentity? right)
Parameters
Type Name Description
LinuxUdsPeerIdentity left
LinuxUdsPeerIdentity right
Returns
Type Description
bool
View Source

operator !=(LinuxUdsPeerIdentity?, LinuxUdsPeerIdentity?)

Declaration
public static bool operator !=(LinuxUdsPeerIdentity? left, LinuxUdsPeerIdentity? right)
Parameters
Type Name Description
LinuxUdsPeerIdentity left
LinuxUdsPeerIdentity right
Returns
Type Description
bool

Implements

IIdentity
IEquatable<T>

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾