Click or drag to resize

SecurityPrincipal Class

A class that implements IPrincipal interface to facilitate custom role-based security.
Inheritance Hierarchy
SystemObject
  GSF.SecuritySecurityPrincipal

Namespace: GSF.Security
Assembly: GSF.Security (in GSF.Security.dll) Version: 2.4.205-beta
Syntax
public class SecurityPrincipal : IPrincipal
View Source

The SecurityPrincipal type exposes the following members.

Constructors
 NameDescription
Public methodSecurityPrincipal Initializes a new instance of the SecurityPrincipal class.
Top
Properties
 NameDescription
Public propertyIdentity Gets the SecurityIdentity object of the user.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberGetFailureReasonPhrase Gets the reason phrase to return for an unauthorized response.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsInRole Determines whether the user is a member of either of the specified roles.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also