- java.lang.Object
- 
- io.helidon.security.SecurityResponse
 
- 
- Direct Known Subclasses:
- AuthenticationResponse,- AuthorizationResponse,- OutboundSecurityResponse
 
 public abstract class SecurityResponse extends Object Response from security provider (and security Module).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSecurityResponse.SecurityStatusStatus of a security operation.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>description()Description of current security status.Map<String,List<String>>requestHeaders()Get new request headers to be used.Map<String,List<String>>responseHeaders()Get new response headers to be used.SecurityResponse.SecurityStatusstatus()Status of this response.OptionalIntstatusCode()Status code (uses HTTP status codes for mapping).Optional<Throwable>throwable()Get underlying throwable causing a failure state (if such happened).StringtoString()
 
- 
- 
- 
Method Detail- 
statuspublic SecurityResponse.SecurityStatus status() Status of this response.- Returns:
- SecurityStatus as the provider responded
 
 - 
statusCodepublic OptionalInt statusCode() Status code (uses HTTP status codes for mapping).- Returns:
- HTTP status code the provider wants to use, or empty if not set
 
 - 
descriptionpublic Optional<String> description() Description of current security status. Should be provided by security providers mostly for failure cases.- Returns:
- Description of current status (optional)
 
 - 
throwablepublic Optional<Throwable> throwable() Get underlying throwable causing a failure state (if such happened).- Returns:
- Exception causing current failure (optional)
 
 - 
requestHeaderspublic Map<String,List<String>> requestHeaders() Get new request headers to be used. These may be additional header, replacement headers or "clearing" headers (in case the value is empty list).- Returns:
- Map of headers to merge with existing headers
 
 - 
responseHeaderspublic Map<String,List<String>> responseHeaders() Get new response headers to be used. These may be additional header, replacement headers or "clearing" headers (in case the value is empty list).- Returns:
- Map of headers to merge with existing headers
 
 
- 
 
-