/** * A shortcut method to build the client and invoke {@link SecurityClient#submit()} on it. * * @return {@link CompletionStage} with {@link SecurityResponse} of expected type */ public CompletionStage<T> submit() { return build().submit(); }
/** * A shortcut method to build the client and invoke {@link SecurityClient#submit()} on it. * * @return {@link CompletionStage} with {@link SecurityResponse} of expected type */ public CompletionStage<OutboundSecurityResponse> submit() { return build().submit(); } }
/** * Synchronous complement to {@link #submit()}. * Timeout is now hardcoded to 1 minute. * * @return response of the current security operation * @throws SecurityException in case of timeout, interrupted call or exception during future processing */ default T get() { return SecurityResponse.get(submit()); }