Interface ISystemAuthenticationControl

The system authentication control feature that allows a client session to query and update the system authentication store.

Inherited Members
ISecurityStoreFeature.UpdateStoreAsync(String)
ISecurityStoreFeature.UpdateStoreAsync(String, CancellationToken)
IFeature.Session
Namespace: PushTechnology.ClientInterface.Client.Features.Control.Clients
Assembly: Diffusion.Client.dll
Syntax
public interface ISystemAuthenticationControl : ISecurityStoreFeature, IFeature
Remarks

Access control

In order to query the store the session needs VIEW_SECURITY permission and in order to update the store it needs MODIFY_SECURITY permission.

Accessing the feature

This feature may be obtained from a ISession as follows

var systemAuthenticationControl = session.SystemAuthenticationControl;

Added in version 5.2.

Properties

Script

Gets the builder that can be used to create scripts for use with UpdateStoreAsync(String).

Declaration
IScriptBuilder Script { get; }
Property Value
Type Description
IScriptBuilder

The default builder instance that creates an empty script.

Methods

GetSystemAuthenticationAsync()

Obtains the current contents of the store.

Declaration
Task<ISystemAuthenticationConfiguration> GetSystemAuthenticationAsync()
Returns
Type Description
System.Threading.Tasks.Task<ISystemAuthenticationConfiguration>

The Task representing the current operation.

Remarks

If the operation completes successfully, the Task result will be a ISystemAuthenticationConfiguration instance.

This method is the same as calling GetSystemAuthenticationAsync(CancellationToken) with System.Threading.CancellationToken.None.

Exceptions
Type Condition
SessionSecurityException

The calling session does not have VIEW_SECURITY permission. Thrown by the returned Task.

SessionClosedException

The calling session is closed. Thrown by the returned Task.

GetSystemAuthenticationAsync(CancellationToken)

Obtains the current contents of the store.

Declaration
Task<ISystemAuthenticationConfiguration> GetSystemAuthenticationAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

The cancellation token used to cancel the current operation.

Returns
Type Description
System.Threading.Tasks.Task<ISystemAuthenticationConfiguration>

The Task representing the current operation.

Remarks

If the operation completes successfully, the Task result will be a ISystemAuthenticationConfiguration instance.

Exceptions
Type Condition
SessionSecurityException

The calling session does not have VIEW_SECURITY permission. Thrown by the returned Task.

SessionClosedException

The calling session is closed. Thrown by the returned Task.

Back to top