Package io.micronaut.security.context
Interface SecurityContextSupplier
- All Known Implementing Classes:
ServerRequestContextSecurityContextSupplier
public interface SecurityContextSupplier
Supplies the
SecurityContext associated with the current execution.- Since:
- 4.18.0
-
Method Summary
Modifier and TypeMethodDescription@NonNull SecurityContextReturns theSecurityContextassociated with the current execution.
-
Method Details
-
getSecurityContext
Returns theSecurityContextassociated with the current execution.- Returns:
- the current
SecurityContext
-