Class VisitorGroupSecurityDescriptor
Virtual role security descriptor, which determains if a principal is member of any of the supplied roles
Inheritance
System.Object
VisitorGroupSecurityDescriptor
Namespace: EPiServer.Security.Internal
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3Syntax
public class VisitorGroupSecurityDescriptor : Object, IRoleSecurityDescriptor, ISecurityDescriptor
Constructors
VisitorGroupSecurityDescriptor(IVisitorGroupRoleRepository, IVisitorGroupRepository)
Initializes a new instance of the VisitorGroupSecurityDescriptor class.
Declaration
public VisitorGroupSecurityDescriptor(IVisitorGroupRoleRepository virtualRoleRepository, IVisitorGroupRepository visitorGroupRepository)
Parameters
| Type | Name | Description |
|---|---|---|
| IVisitorGroupRoleRepository | virtualRoleRepository | The virtual role repository. |
| IVisitorGroupRepository | visitorGroupRepository | The visitor group repository. |
Properties
RoleIdentities
Gets or sets the identities.
Declaration
public IEnumerable<string> RoleIdentities { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.String> | The identities. |
Methods
GetAccessLevel(IPrincipal)
Returns the access level for the specified principal.
Declaration
public AccessLevel GetAccessLevel(IPrincipal principal)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Security.Principal.IPrincipal | principal | The principal to check access against. |
Returns
| Type | Description |
|---|---|
| AccessLevel | The access level. |
Remarks
This method will always return AccessLevel.Undefined
HasAccess(IPrincipal, AccessLevel)
Determines whether the specified principal is member of any of the supplied roles
Declaration
public bool HasAccess(IPrincipal principal, AccessLevel access)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Security.Principal.IPrincipal | principal | The principal to authorize. |
| AccessLevel | access | The requested access level. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|