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
| Name | Type | Access | In Ring |
|---|---|---|---|
Claims | IEnumerable<Claim> | read | o.getClaims() |
Name | string | read | o.getName() |
AuthenticationType | string | read | o.getAuthenticationType() |
IsAuthenticated | bool | read | o.getIsAuthenticated() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Clone | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Identity | IIdentity | read | o.getIdentity() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsInRole | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
UnmappedIdentities | IdentityReferenceCollection | read | o.UnmappedIdentities |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetObjectData | GetObjectData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Value | string | read | o.Value |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object o) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
IsValidTargetType | IsValidTargetType(p1) | bool IsValidTargetType(Type targetType) |
ToString | callMethod("ToString",[]) | string ToString() |
Translate | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.Count |
Indexer
o.Item(int index) → IdentityReference · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | Add(p1) | void Add(IdentityReference identity) |
Clear | callMethod("Clear",[]) | void Clear() |
Contains | Contains(p1) | bool Contains(IdentityReference identity) |
CopyTo | CopyTo(p1,p2) | void CopyTo(IdentityReference[] array, int offset) |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator<IdentityReference> GetEnumerator() |
Remove | Remove(p1) | bool Remove(IdentityReference identity) |
Translate | Translate(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Name | string | read | o.Name |
AuthenticationType | string | read | o.AuthenticationType |
IsAuthenticated | bool | read | o.IsAuthenticated |
IPrincipal interface
System.Security.Principal.IPrincipal · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Identity | IIdentity | read | o.Identity |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsInRole | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Value | string | read | o.getValue() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object o) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
IsValidTargetType | IsValidTargetType(p1) | bool IsValidTargetType(Type targetType) |
ToString | callMethod("ToString",[]) | string ToString() |
Translate | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
BinaryLength | int | read | o.BinaryLength |
AccountDomainSid | SecurityIdentifier | read | o.AccountDomainSid |
Value | string | read | o.getValue() |
MinBinaryLength | int | read · static | o.MinBinaryLength |
MaxBinaryLength | int | read · static | o.MaxBinaryLength |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CompareTo | CompareTo(p1) | int CompareTo(SecurityIdentifier sid) |
Equals | Equals(p1) | bool Equals(object o)bool Equals(SecurityIdentifier sid) |
GetBinaryForm | GetBinaryForm(p1,p2) | void GetBinaryForm(byte[] binaryForm, int offset) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
IsAccountSid | callMethod("IsAccountSid",[]) | bool IsAccountSid() |
IsEqualDomainSid | IsEqualDomainSid(p1) | bool IsEqualDomainSid(SecurityIdentifier sid) |
IsValidTargetType | IsValidTargetType(p1) | bool IsValidTargetType(Type targetType) |
IsWellKnown | IsWellKnown(p1) | bool IsWellKnown(WellKnownSidType type) |
ToString | callMethod("ToString",[]) | string ToString() |
Translate | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
AuthenticationType | string | read | o.getAuthenticationType() |
ImpersonationLevel | TokenImpersonationLevel | read | o.ImpersonationLevel |
IsAuthenticated | bool | read | o.getIsAuthenticated() |
IsGuest | bool | read | o.IsGuest |
IsSystem | bool | read | o.IsSystem |
IsAnonymous | bool | read | o.IsAnonymous |
Name | string | read | o.getName() |
Owner | SecurityIdentifier | read | o.Owner |
User | SecurityIdentifier | read | o.User |
Groups | IdentityReferenceCollection | read | o.Groups |
AccessToken | SafeAccessTokenHandle | read | o.AccessToken |
Token | IntPtr | read | o.Token |
UserClaims | IEnumerable<Claim> | read | o.UserClaims |
DeviceClaims | IEnumerable<Claim> | read | o.DeviceClaims |
Claims | IEnumerable<Claim> | read | o.getClaims() |
DefaultIssuer | string | constant · static | o.getDefaultIssuer() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Clone | callMethod("Clone",[]) | ClaimsIdentity Clone() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetAnonymous | GetAnonymous() | static WindowsIdentity GetAnonymous() |
GetCurrent | GetCurrent(NULL)GetCurrent(value)GetCurrent([ :ifImpersonating = … ])GetCurrent([ :desiredAccess = … ]) | static WindowsIdentity GetCurrent()static WindowsIdentity GetCurrent(bool ifImpersonating)static WindowsIdentity GetCurrent(TokenAccessLevels desiredAccess) |
RunImpersonated | RunImpersonated(p1,p2) | static void RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle, Action action)static T RunImpersonated<T>(SafeAccessTokenHandle safeAccessTokenHandle, Func<T> func) |
RunImpersonatedAsync | RunImpersonatedAsync(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Identity | IIdentity | read | o.getIdentity() |
UserClaims | IEnumerable<Claim> | read | o.UserClaims |
DeviceClaims | IEnumerable<Claim> | read | o.DeviceClaims |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsInRole | callMethod("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.