New to Telerik UI for WinForms? Start a free 30-day trial

Checks permission ranges against the current user of the associated RadRichTextBox.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DefaultCredentialsValidator : IProtectionAuthenticationProvider

Inheritance: objectDefaultCredentialsValidator

Implements: IProtectionAuthenticationProvider

Constructors

Creates a validator that uses the specified editor's user information and tracks changes to it.

C#
public DefaultCredentialsValidator(RadRichTextBox richTextBox)
Parameters:richTextBoxRadRichTextBox

The editor whose current user is checked for permission access.

Methods

Determines whether the editor's current user matches the supplied permission.

C#
public bool CanEdit(PermissionRangeInfo permissionInfo)
Parameters:permissionInfoPermissionRangeInfo

The permission range to check.

Returns:

bool

true for an Everyone permission; for an Individual permission when its name matches the user's domain-stripped username or email; or for a Group permission when its name matches the user's group. Name comparisons are case-insensitive. If there is no current user, only Everyone permissions are allowed.

Implements: IProtectionAuthenticationProvider.CanEdit(PermissionRangeInfo)

Events

Occurs when the associated editor reports that its user information has changed.

C#
public event EventHandler AuthenticationDataChanged

Implements: IProtectionAuthenticationProvider.AuthenticationDataChanged