Package io.helidon.security
Class OutboundSecurityResponse
- java.lang.Object
-
- io.helidon.security.SecurityResponse
-
- io.helidon.security.OutboundSecurityResponse
-
public final class OutboundSecurityResponse extends SecurityResponse
Response of outbound security provider.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOutboundSecurityResponse.BuilderBuilder class to build custom identity propagation responses.-
Nested classes/interfaces inherited from class io.helidon.security.SecurityResponse
SecurityResponse.SecurityStatus
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OutboundSecurityResponseabstain()Abstain from processing this request.static OutboundSecurityResponse.Builderbuilder()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 io.helidon.security.SecurityResponse
description, requestHeaders, responseHeaders, status, statusCode, throwable, toString
-
-
-
-
Method Detail
-
empty
public static OutboundSecurityResponse empty()
There is nothing we can add - e.g. we do not propagate identity.- Returns:
- response with no headers
-
withHeaders
public static OutboundSecurityResponse withHeaders(Map<String,List<String>> headers)
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
public static OutboundSecurityResponse.Builder builder()
Get an instance of builder to build custom identity propagation response.- Returns:
- Builder instance
-
abstain
public static OutboundSecurityResponse abstain()
Abstain from processing this request.- Returns:
- response with abstain status
-
-