-
public interface SecurityRequestCommon methods for all security requests (authentication, authorization, and identity propagation).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisOptional()If true and security provider does not find required information in request/response/message, or headers, it should returnSecurityResponse.SecurityStatus.FAILUREwithout doing any side effects (e.g.Map<String,Supplier<Object>>resources()Return a map of keys to resource instances.Optional<SpanContext>tracingSpanContext()Parent span for tracing.
-
-
-
Method Detail
-
isOptional
default boolean isOptional()
If true and security provider does not find required information in request/response/message, or headers, it should returnSecurityResponse.SecurityStatus.FAILUREwithout doing any side effects (e.g. should not redirect, call third parties etc.).- Returns:
- true if security is optional
-
tracingSpanContext
Optional<SpanContext> tracingSpanContext()
Parent span for tracing. There may be no parent defined (such as when tracing is disabled).- Returns:
- tracing span context if available
-
-