Class ClaimsPrincipalExtensions
Extension methods for ClaimsPrincipal.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public static class ClaimsPrincipalExtensions
Methods
| Improve this Doc View SourceIsAnonymous(ClaimsPrincipal)
Checks if the principal represents an anonymous user.
Declaration
public static bool IsAnonymous(this ClaimsPrincipal principal)
Parameters
Type | Name | Description |
---|---|---|
ClaimsPrincipal | principal | The principal to check. |
Returns
Type | Description |
---|---|
Boolean | true when the principal contains an anonymous identity. |
IsUnixUser(ClaimsPrincipal)
Checks if the principal represents an unix user.
Declaration
public static bool IsUnixUser(this ClaimsPrincipal principal)
Parameters
Type | Name | Description |
---|---|---|
ClaimsPrincipal | principal | The principal to check. |
Returns
Type | Description |
---|---|
Boolean | true when the principal contains an unix identity. |