Class SecurityTracing
java.lang.Object
io.helidon.security.integration.common.SecurityTracing
Security integration utility for tracing support in integration components.
- 
Method SummaryModifier and TypeMethodDescriptionCreate a tracing span for authentication.Create a tracing span for authorization.voidLog error and finish the span.voidLog error and finish the span.Find closes parent span context.voidfinish()Finish the span.static SecurityTracingget()Get an instance from the currentContextor create a new instance and start the security span.voidlogDeny()Log security status - deny.voidLog security status - proceed.voidLog response status.Create a tracing span for outbound tracing.Create a tracing span for response.roleMapTracing(String id) Create a tracing pan for a role mapper.voidsecurityContext(SecurityContext context) Update security span with information fromSecurityContext.protected SpanTracingConfig
- 
Method Details- 
getGet an instance from the currentContextor create a new instance and start the security span.- Returns:
- existing or a new tracing instance to be used for tracing security events
 
- 
securityContextUpdate security span with information fromSecurityContext. The context is expected to be unauthenticated and unauthorized. This method should be called as soon as possible to provide correlation to log statements.- Parameters:
- context- security context for this request
 
- 
logProceedpublic void logProceed()Log security status - proceed. This should be logged when security allows further processing of the request.
- 
logDenypublic void logDeny()Log security status - deny. This should be logged when security denies further processing of the request.
- 
atnTracingCreate a tracing span for authentication.- Returns:
- authentication tracing
 
- 
roleMapTracingCreate a tracing pan for a role mapper.- Parameters:
- id- role mapper identification (such as- idcs)
- Returns:
- role mapper tracing (each invocation creates a new instance)
 
- 
atzTracingCreate a tracing span for authorization.- Returns:
- authorization tracing
 
- 
outboundTracingCreate a tracing span for outbound tracing. Each invocation of this method returns a new tracing instance (to support multiple outbound calls).- Returns:
- outbound security tracing
 
- 
responseTracingCreate a tracing span for response.- Returns:
- response security tracing
 
- 
finishpublic void finish()Finish the span.
- 
errorLog error and finish the span.- Parameters:
- message- log this message as the cause of failure
 
- 
errorLog error and finish the span.- Parameters:
- throwable- throwable causing security to fail
 
- 
findParentFind closes parent span context.- Returns:
- span context if found
 
- 
logStatusLog response status. This is to be used by authorization, authentication and outbound security. Top level security only traces proceed or deny.- Parameters:
- status- status to log
 
- 
spanConfig
 
-