Module io.helidon.security
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
-
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 obtainSecurityResponse.SecurityStatusand easily check ifSecurityResponse.SecurityStatus.isSuccess()Otherwise security request failed or could not be processed.
-
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
-