DiffusionTM Android API 6.6.0-preview.1
public interface AuthenticationControl extends Feature
Sessions are authenticated by a chain of authentication handlers. A client session can participate in the authentication process by creating an authentication handler and registering it with the server.
Each authentication handler is registered under a particular handler name.
For registration to succeed, the server's security configuration must include
control-authentication-handler entry for the name,
otherwise registration will fail and the authentication handler will be
Each client session can register a single authentication handler for a given handler name.
For each authentication event, the server will use its configuration to determine the handler priority order. The server may call authentication handlers in serial or parallel. The server may stop the authentication process as soon as it has an allow or deny response from an authentication handler and all higher priority authentication handlers have abstained.
For a configured control authentication handler, the server will select a single handler from those registered for the handler name. If no authenticators are currently registered, the server will consult the next configured authentication handler in priority order.
AuthenticationControl authenticationControl = session.feature(AuthenticationControl.class);
|Modifier and Type||Interface and Description|
A control authenticator.
|Modifier and Type||Method and Description|
Register an authentication handler for client authentication events.
CompletableFuture<Registration> setAuthenticationHandler(String handlerName, AuthenticationControl.ControlAuthenticator authenticator)
handlerName- the handler name which must match an entry in the server's security configuration
authenticator- specifies the authentication handler
Registrationwhich can be used to unregister the authentication handler.
Copyright © 2020 Push Technology Ltd. All Rights Reserved.