Skip to main content
.NET Framework 4.5.2+

SecuritySystem Members

The static class that defines the XAF security system.

Properties

Name Description
AllowReloadPermissions static For internal use.
CanRefreshPermissions static Obsolete. This property is obsolete. Use the DataManipulationRight_IsGrantedAdapter.Enable method instead
CurrentUser static Gets the user who is currently logged on.
CurrentUserId static Gets the unique identifier of the current user.
CurrentUserName static Gets the login name of the current user.
Instance static Gets the instance of the Security Strategy.
IsAuthenticated static Gets a boolean value indicating that a user is authenticated.
IsLogoffEnabled static Gets a boolean value indicating that a user can log off and then logon again without restarting the application.
LogonObjectSpace static Gets the Object Space used when logging on.
LogonParameters static Gets the logon parameters object.
UserType static Gets the type of user objects

Methods

Name Description
Demand(IPermissionRequest) static Throws a SecurityException exception when the current user is allowed to execute a particular secured operation.
Demand(IPermission) static Throws a SecurityException exception if the specified permission is not granted to the current user.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
IsGranted(IObjectSpace, Type, String, Object, String) static Checks whether or not the specified permission is granted to the current user.
IsGranted(IPermissionRequest) static Checks whether or not the current user is allowed to execute the specified secured operation.
IsGranted(IRequestSecurity, IPermissionRequest) static
IsGranted(ISecurity, IPermission) static
IsGranted(IPermission) static Checks whether or not the specified permission is granted to the current user.
IsGrantedNavigate(IRequestSecurity, String, Type, Object, IObjectSpace) static
IsGrantedNavigate(String, Type, Object, IObjectSpace) static Checks whether or not the specified navigation permission is granted to the current user.
Logon(IObjectSpace) static Performs the logon.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ReloadPermissions() static For internal use.
SetInstance(ISecurityStrategyBase) static Initializes the Security System.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
CustomIsGranted static Occurs when the PermissionRequest instance is passed to the SecuritySystem.IsGranted method.
See Also