Interface SystemAuthenticationControl
- All Superinterfaces:
- Feature,- SecurityStoreFeature
This feature allows a client session to query and update the system
 authentication store.
 
Access control
In order to query the store the session needsVIEW_SECURITY permission and in order
 to update the store it needs MODIFY_SECURITY permission.
 Accessing the feature
This feature may be obtained from asession as follows:
 
 SystemAuthenticationControl systemAuthenticationControl =
     session.feature(SystemAuthenticationControl.class);
 - Since:
- 5.2
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumAction to be taken by the system authentication handler for connection attempts that do not provide a principal name and credentials.static interfaceA script builder may be used to create a script of commands to apply to the system authentication store at the server.static interfaceDefines the validation for a trusted client proposed session property.static interfaceSnapshot of information from the system authentication store.static interfaceA principal in the system authentication store.
- 
Method SummaryModifier and TypeMethodDescriptionObtain the current contents of the store.Returns a builder that can be used to create scripts for use withupdateStore.Methods inherited from interface com.pushtechnology.diffusion.client.session.FeaturegetSessionMethods inherited from interface com.pushtechnology.diffusion.client.features.control.clients.SecurityStoreFeatureupdateStore
- 
Method Details- 
getSystemAuthenticationCompletableFuture<SystemAuthenticationControl.SystemAuthenticationConfiguration> getSystemAuthentication()Obtain the current contents of the store.- Returns:
- a CompletableFuture that completes when a response is received
         from the server.
         If the request was successful, the CompletableFuture will complete successfully with a SystemAuthenticationControl.SystemAuthenticationConfigurationresult.Otherwise, the CompletableFuture will complete exceptionally with a CompletionException. Common reasons for failure, listed by the exception reported as thecause, include:- PermissionsException– if the session does not have- VIEW_SECURITYpermission;
- SessionClosedException– if the session is closed.
 
- Since:
- 6.0
 
- 
scriptBuilderSystemAuthenticationControl.ScriptBuilder scriptBuilder()Returns a builder that can be used to create scripts for use withupdateStore.- Returns:
- an initial builder that creates an empty script
 
 
-