Class OutboundSecurityResponse
java.lang.Object
io.helidon.security.SecurityResponse
io.helidon.security.OutboundSecurityResponse
Response of outbound security provider.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class to build custom identity propagation responses.Nested classes/interfaces inherited from class SecurityResponse
SecurityResponse.SecurityStatusModifier and TypeClassDescriptionstatic enumStatus of a security operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutboundSecurityResponseabstain()Abstain from processing this request.builder()Get an instance of builder to build custom identity propagation response.static OutboundSecurityResponseempty()There is nothing we can add - e.g.static OutboundSecurityResponsewithHeaders(Map<String, List<String>> headers) Create a response with these headers.Methods inherited from class SecurityResponse
description, requestHeaders, responseHeaders, status, statusCode, throwable, toStringModifier and TypeMethodDescriptionDescription of current security status.Get new request headers to be used.Get new response headers to be used.status()Status of this response.Status code (uses HTTP status codes for mapping).Get underlying throwable causing a failure state (if such happened).toString()
-
Method Details
-
empty
There is nothing we can add - e.g. we do not propagate identity.- Returns:
- response with no headers
-
withHeaders
Create a response with these headers. Only needs additional headers (e.g. actual headers sent with request will be existing headers + headers provided here).- Parameters:
headers- Headers to add to request to propagate identity (can also be used to delete headers, if the value list is empty)- Returns:
- response correctly initialized
-
builder
Get an instance of builder to build custom identity propagation response.- Returns:
- Builder instance
-
abstain
Abstain from processing this request.- Returns:
- response with abstain status
-