public interface SystemAuthenticationControl extends SecurityStoreFeature
VIEW_SECURITY
permission and in order
to update the store it needs MODIFY_SECURITY
permission.
session
as follows:
SystemAuthenticationControl systemAuthenticationControl = session.feature(SystemAuthenticationControl.class);
Modifier and Type | Interface and Description |
---|---|
static class |
SystemAuthenticationControl.AnonymousConnectionAction
Action to be taken by the system authentication handler for connection
attempts that do not provide a principal name and credentials.
|
static interface |
SystemAuthenticationControl.ConfigurationCallback
The callback interface for
getSystemAuthentication . |
static interface |
SystemAuthenticationControl.ConfigurationContextCallback<C>
The contextual callback interface for
SystemAuthenticationControl.ConfigurationCallback for
getSystemAuthentication . |
static interface |
SystemAuthenticationControl.ScriptBuilder
A script builder may be used to create a script of commands to apply to
the system authentication store at the server.
|
static interface |
SystemAuthenticationControl.SessionPropertyValidation
Defines the validation for a trusted client proposed session property.
|
static interface |
SystemAuthenticationControl.SystemAuthenticationConfiguration
Snapshot of information from the system authentication store.
|
static interface |
SystemAuthenticationControl.SystemPrincipal
A principal in the system authentication store.
|
SecurityStoreFeature.UpdateStoreCallback, SecurityStoreFeature.UpdateStoreContextCallback<C>
Modifier and Type | Method and Description |
---|---|
CompletableFuture<SystemAuthenticationControl.SystemAuthenticationConfiguration> |
getSystemAuthentication()
Obtain the current contents of the store.
|
<C> void |
getSystemAuthentication(C context,
SystemAuthenticationControl.ConfigurationContextCallback<C> callback)
Query the store for all of the system principals, with a contextual
callback.
|
void |
getSystemAuthentication(SystemAuthenticationControl.ConfigurationCallback callback)
Obtain the current contents of the store.
|
SystemAuthenticationControl.ScriptBuilder |
scriptBuilder()
Returns a builder that can be used to create scripts for use with
updateStore . |
updateStore, updateStore, updateStore
getSession
CompletableFuture<SystemAuthenticationControl.SystemAuthenticationConfiguration> getSystemAuthentication()
If the request was successful, the CompletableFuture will
complete successfully with a
SystemAuthenticationControl.SystemAuthenticationConfiguration
result.
Otherwise, the CompletableFuture will complete exceptionally with
a CompletionException
. Common reasons for failure, listed
by the exception reported as the
cause
, include:
SessionSecurityException
– if the session does
not have VIEW_SECURITY
permission;
SessionClosedException
– if the session is
closed.
void getSystemAuthentication(SystemAuthenticationControl.ConfigurationCallback callback)
callback
- the operation callback<C> void getSystemAuthentication(C context, SystemAuthenticationControl.ConfigurationContextCallback<C> callback)
C
- the context typecontext
- the context to pass to the callback, may be nullcallback
- the operation callbackgetSystemAuthentication(ConfigurationCallback)
SystemAuthenticationControl.ScriptBuilder scriptBuilder()
updateStore
.Copyright © 2020 Push Technology Ltd. All Rights Reserved.