Implement the ControlAuthenticator
interface to create a control authentication handler.
This example demonstrates how to implement a control authentication
handler in Java™.
Note: A detailed example will be added soon.
-
Create a Java class that implements
ControlAuthenticator.
-
Create a simple client that registers your control authentication handler with
Diffusion™ Cloud.
-
Start your client.
It connects to Diffusion Cloud and registers the control
authentication handler with the name
before-system-handler.
When a client authenticates, Diffusion Cloud forwards the
authentication request to the authentication handler you have registered. Your
authentication handler can ALLOW, DENY, or ABSTAIN from the authentication decision. If
your authentication handler returns an ALLOW or DENY decision, this decision is used as
the response to the authenticating client. If your authentication handler returns an
ABSTAIN decision, Diffusion Cloud forwards the authentication request
to the next authentication handler. For more information, see Authentication.