Class DirectClient

All Implemented Interfaces:
Client
Direct Known Subclasses:
AnonymousClient

public abstract class DirectClient extends BaseClient
Direct client: credentials are passed and authentication occurs for every HTTP request.
Since:
1.9.0
Author:
Jerome Leleu
  • Constructor Details

    • DirectClient

      public DirectClient()
  • Method Details

    • beforeInternalInit

      protected void beforeInternalInit(boolean forceReinit)

      beforeInternalInit.

      Overrides:
      beforeInternalInit in class InitializableObject
      Parameters:
      forceReinit - a boolean
    • afterInternalInit

      protected final void afterInternalInit(boolean forceReinit)

      afterInternalInit.

      Overrides:
      afterInternalInit in class InitializableObject
      Parameters:
      forceReinit - a boolean
    • getRedirectionAction

      public final Optional<RedirectionAction> getRedirectionAction(CallContext ctx)

      Return the redirection action to the authentication provider (indirect clients).

      Parameters:
      ctx - the current context
      Returns:
      the redirection to perform (optional)
    • processLogout

      public final HttpAction processLogout(CallContext ctx, Credentials credentials)
      Process the logout.
      Parameters:
      ctx - the current context
      credentials - the logout credentials
      Returns:
      the resulting HTTP action
    • getLogoutAction

      public final Optional<RedirectionAction> getLogoutAction(CallContext ctx, UserProfile currentProfile, String targetUrl)

      Return the logout action (indirect clients).

      Parameters:
      ctx - the current context
      currentProfile - the currentProfile
      targetUrl - the target url after logout
      Returns:
      the redirection to perform (optional)