Interface SecurityClient<T extends SecurityResponse>

Type Parameters:
T - type of the response of the security client, such as AuthenticationResponse

public interface SecurityClient<T extends SecurityResponse>
Common methods for security clients.
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    get()
    Synchronous complement to submit().
    Submit the configured fields in the security request and process the security operation (Authentication, Authorization or OutboundSecurity).
  • Method Details

    • submit

      T submit()
      Submit the configured fields in the security request and process the security operation (Authentication, Authorization or OutboundSecurity).
      Returns:
      response with information about what happened. Check SecurityResponse.status() to obtain SecurityResponse.SecurityStatus and easily check if SecurityResponse.SecurityStatus.isSuccess() Otherwise security request failed or could not be processed.
    • get

      default T get()
      Synchronous complement to submit(). Timeout is now hardcoded to 1 minute.
      Returns:
      response of the current security operation
      Throws:
      SecurityException - in case of timeout, interrupted call or exception during future processing