Package io.helidon.security
Interface SecurityClient<T extends SecurityResponse>
-
- Type Parameters:
T- type of the response of the security client, such asAuthenticationResponse
public interface SecurityClient<T extends SecurityResponse>Common methods for security clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Tget()Synchronous complement tosubmit().CompletionStage<T>submit()Submit the configured fields in the security request and process the security operation (Authentication, Authorization or OutboundSecurity).
-
-
-
Method Detail
-
submit
CompletionStage<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 obtainSecurityResponse.SecurityStatusand easily check ifSecurityResponse.SecurityStatus.isSuccess()Otherwise security request failed or could not be processed.
-
get
default T get()
Synchronous complement tosubmit(). 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
-
-