Try our conversational search powered by Generative AI!

Class VisitorGroupSecurityDescriptor

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Virtual role security descriptor, which determains if a principal is member of any of the supplied roles

Inheritance
System.Object
VisitorGroupSecurityDescriptor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Security.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class VisitorGroupSecurityDescriptor : IRoleSecurityDescriptor, ISecurityDescriptor

Constructors

VisitorGroupSecurityDescriptor(IVisitorGroupRoleRepository, IVisitorGroupRepository)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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

true if the specified principal has access; otherwise, false.

Implements

Extension Methods