RingDotNetfor Ring

System.Security.Principal

11 wrapped types. Load them with using { "System.Security.Principal" }. Click a class to open it.

GenericIdentity class · extends ClaimsIdentity

System.Security.Principal.GenericIdentity · assembly System.Security.Claims

Implements: IIdentity

Constructors

new GenericIdentity(string name)
new GenericIdentity(string name, string type)

Ring: new GenericIdentity(args) uses one constructor; the others are chosen by the parameter names: new GenericIdentity().@New([ :param = value ]) or dnNew("GenericIdentity",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ClaimsIEnumerable<Claim>reado.getClaims()
Namestringreado.getName()
AuthenticationTypestringreado.getAuthenticationType()
IsAuthenticatedboolreado.getIsAuthenticated()

Methods

MethodRing call.NET overloads
ClonecallMethod("Clone",[])ClaimsIdentity Clone()

Members of the base class are inherited.

GenericPrincipal class · extends ClaimsPrincipal

System.Security.Principal.GenericPrincipal · assembly System.Security.Claims

Implements: IPrincipal

Constructors

new GenericPrincipal(IIdentity identity, string[] roles)

Ring: new GenericPrincipal(args) uses one constructor; the others are chosen by the parameter names: new GenericPrincipal().@New([ :param = value ]) or dnNew("GenericPrincipal",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IdentityIIdentityreado.getIdentity()

Methods

MethodRing call.NET overloads
IsInRolecallMethod("IsInRole",[p1])bool IsInRole(string role)

Members of the base class are inherited.

IdentityNotMappedException class sealed · extends SystemException

System.Security.Principal.IdentityNotMappedException · assembly System.Security.Principal.Windows

Implements: ISerializable

Constructors

new IdentityNotMappedException()
new IdentityNotMappedException(string message)
new IdentityNotMappedException(string message, Exception inner)

Ring: new IdentityNotMappedException(args) uses one constructor; the others are chosen by the parameter names: new IdentityNotMappedException().@New([ :param = value ]) or dnNew("IdentityNotMappedException",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
UnmappedIdentitiesIdentityReferenceCollectionreado.UnmappedIdentities

Methods

MethodRing call.NET overloads
GetObjectDataGetObjectData(p1,p2)void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)

Members of the base class are inherited.

IdentityReference class abstract

System.Security.Principal.IdentityReference · assembly System.Security.Principal.Windows

Properties and fields

NameTypeAccessIn Ring
Valuestringreado.Value

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object o)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
IsValidTargetTypeIsValidTargetType(p1)bool IsValidTargetType(Type targetType)
ToStringcallMethod("ToString",[])string ToString()
TranslatecallMethod("Translate",[p1])IdentityReference Translate(Type targetType)
IdentityReferenceCollection class

System.Security.Principal.IdentityReferenceCollection · assembly System.Security.Principal.Windows

Implements: IEnumerable

Constructors

new IdentityReferenceCollection()
new IdentityReferenceCollection(int capacity)

Ring: new IdentityReferenceCollection(args) uses one constructor; the others are chosen by the parameter names: new IdentityReferenceCollection().@New([ :param = value ]) or dnNew("IdentityReferenceCollection",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Countintreado.Count

Indexer

o.Item(int index) → IdentityReference · o.SetItem(index,value)

Methods

MethodRing call.NET overloads
AddAdd(p1)void Add(IdentityReference identity)
ClearcallMethod("Clear",[])void Clear()
ContainsContains(p1)bool Contains(IdentityReference identity)
CopyToCopyTo(p1,p2)void CopyTo(IdentityReference[] array, int offset)
GetEnumeratorcallMethod("GetEnumerator",[])IEnumerator<IdentityReference> GetEnumerator()
RemoveRemove(p1)bool Remove(IdentityReference identity)
TranslateTranslate(value)
Translate([ :targetType = … ])
Translate([ :targetType = …, :forceSuccess = … ])
IdentityReferenceCollection Translate(Type targetType)
IdentityReferenceCollection Translate(Type targetType, bool forceSuccess)
IIdentity interface

System.Security.Principal.IIdentity · assembly System.Private.CoreLib

Properties and fields

NameTypeAccessIn Ring
Namestringreado.Name
AuthenticationTypestringreado.AuthenticationType
IsAuthenticatedboolreado.IsAuthenticated
IPrincipal interface

System.Security.Principal.IPrincipal · assembly System.Private.CoreLib

Properties and fields

NameTypeAccessIn Ring
IdentityIIdentityreado.Identity

Methods

MethodRing call.NET overloads
IsInRolecallMethod("IsInRole",[p1])bool IsInRole(string role)
NTAccount class sealed · extends IdentityReference

System.Security.Principal.NTAccount · assembly System.Security.Principal.Windows

Constructors

new NTAccount(string domainName, string accountName)
new NTAccount(string name)

Ring: new NTAccount(args) uses one constructor; the others are chosen by the parameter names: new NTAccount().@New([ :param = value ]) or dnNew("NTAccount",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Valuestringreado.getValue()

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object o)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
IsValidTargetTypeIsValidTargetType(p1)bool IsValidTargetType(Type targetType)
ToStringcallMethod("ToString",[])string ToString()
TranslatecallMethod("Translate",[p1])IdentityReference Translate(Type targetType)

Members of the base class are inherited.

SecurityIdentifier class sealed · extends IdentityReference

System.Security.Principal.SecurityIdentifier · assembly System.Security.Principal.Windows

Constructors

new SecurityIdentifier(string sddlForm)
new SecurityIdentifier(byte[] binaryForm, int offset)
new SecurityIdentifier(IntPtr binaryForm)
new SecurityIdentifier(WellKnownSidType sidType, SecurityIdentifier domainSid)

Ring: new SecurityIdentifier(args) uses one constructor; the others are chosen by the parameter names: new SecurityIdentifier().@New([ :param = value ]) or dnNew("SecurityIdentifier",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
BinaryLengthintreado.BinaryLength
AccountDomainSidSecurityIdentifierreado.AccountDomainSid
Valuestringreado.getValue()
MinBinaryLengthintread · statico.MinBinaryLength
MaxBinaryLengthintread · statico.MaxBinaryLength

Methods

MethodRing call.NET overloads
CompareToCompareTo(p1)int CompareTo(SecurityIdentifier sid)
EqualsEquals(p1)bool Equals(object o)
bool Equals(SecurityIdentifier sid)
GetBinaryFormGetBinaryForm(p1,p2)void GetBinaryForm(byte[] binaryForm, int offset)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
IsAccountSidcallMethod("IsAccountSid",[])bool IsAccountSid()
IsEqualDomainSidIsEqualDomainSid(p1)bool IsEqualDomainSid(SecurityIdentifier sid)
IsValidTargetTypeIsValidTargetType(p1)bool IsValidTargetType(Type targetType)
IsWellKnownIsWellKnown(p1)bool IsWellKnown(WellKnownSidType type)
ToStringcallMethod("ToString",[])string ToString()
TranslatecallMethod("Translate",[p1])IdentityReference Translate(Type targetType)

Members of the base class are inherited.

WindowsIdentity class · extends ClaimsIdentity

System.Security.Principal.WindowsIdentity · assembly System.Security.Principal.Windows

Implements: IIdentity, IDisposable, ISerializable, IDeserializationCallback

Constructors

new WindowsIdentity(IntPtr userToken)
new WindowsIdentity(IntPtr userToken, string type)
new WindowsIdentity(IntPtr userToken, string type, WindowsAccountType acctType)
new WindowsIdentity(IntPtr userToken, string type, WindowsAccountType acctType, bool isAuthenticated)
new WindowsIdentity(string sUserPrincipalName)
new WindowsIdentity(SerializationInfo info, StreamingContext context)

Ring: new WindowsIdentity(args) uses one constructor; the others are chosen by the parameter names: new WindowsIdentity().@New([ :param = value ]) or dnNew("WindowsIdentity",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
AuthenticationTypestringreado.getAuthenticationType()
ImpersonationLevelTokenImpersonationLevelreado.ImpersonationLevel
IsAuthenticatedboolreado.getIsAuthenticated()
IsGuestboolreado.IsGuest
IsSystemboolreado.IsSystem
IsAnonymousboolreado.IsAnonymous
Namestringreado.getName()
OwnerSecurityIdentifierreado.Owner
UserSecurityIdentifierreado.User
GroupsIdentityReferenceCollectionreado.Groups
AccessTokenSafeAccessTokenHandlereado.AccessToken
TokenIntPtrreado.Token
UserClaimsIEnumerable<Claim>reado.UserClaims
DeviceClaimsIEnumerable<Claim>reado.DeviceClaims
ClaimsIEnumerable<Claim>reado.getClaims()
DefaultIssuerstringconstant · statico.getDefaultIssuer()

Methods

MethodRing call.NET overloads
ClonecallMethod("Clone",[])ClaimsIdentity Clone()
DisposecallMethod("Dispose",[])void Dispose()
GetAnonymousGetAnonymous()static WindowsIdentity GetAnonymous()
GetCurrentGetCurrent(NULL)
GetCurrent(value)
GetCurrent([ :ifImpersonating = … ])
GetCurrent([ :desiredAccess = … ])
static WindowsIdentity GetCurrent()
static WindowsIdentity GetCurrent(bool ifImpersonating)
static WindowsIdentity GetCurrent(TokenAccessLevels desiredAccess)
RunImpersonatedRunImpersonated(p1,p2)static void RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle, Action action)
static T RunImpersonated<T>(SafeAccessTokenHandle safeAccessTokenHandle, Func<T> func)
RunImpersonatedAsyncRunImpersonatedAsync(p1,p2)static Task RunImpersonatedAsync(SafeAccessTokenHandle safeAccessTokenHandle, Func<Task> func)
static Task<T> RunImpersonatedAsync<T>(SafeAccessTokenHandle safeAccessTokenHandle, Func<Task<T>> func)

Members of the base class are inherited.

WindowsPrincipal class · extends ClaimsPrincipal

System.Security.Principal.WindowsPrincipal · assembly System.Security.Principal.Windows

Implements: IPrincipal

Constructors

new WindowsPrincipal(WindowsIdentity ntIdentity)

Ring: new WindowsPrincipal(args) uses one constructor; the others are chosen by the parameter names: new WindowsPrincipal().@New([ :param = value ]) or dnNew("WindowsPrincipal",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IdentityIIdentityreado.getIdentity()
UserClaimsIEnumerable<Claim>reado.UserClaims
DeviceClaimsIEnumerable<Claim>reado.DeviceClaims

Methods

MethodRing call.NET overloads
IsInRolecallMethod("IsInRole",[p1])bool IsInRole(string role)
bool IsInRole(WindowsBuiltInRole role)
bool IsInRole(int rid)
bool IsInRole(SecurityIdentifier sid)

Members of the base class are inherited.