Interface SecurityContextAware

All Known Implementing Classes:
AuthenticationController, CdcController, DcrController, LicenseController, PitrController, PrivilegesController, RoleAssignmentsController, RoleManagementController, RollingUpgradeController, SnapshotManagementController, UserManagementController

public interface SecurityContextAware
Security context aware adds helpful method to execute supplier with security context.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    secured(Runnable runnable)
     
    default <T> T
    secured(Supplier<T> supplier)
    Execute supplier with security context.
    io.micronaut.security.utils.SecurityService
    Get security service.
  • Method Details

    • secured

      default <T> T secured(Supplier<T> supplier)
      Execute supplier with security context.
      Parameters:
      supplier - Supplier.
      Returns:
      Supplier result.
    • secured

      default void secured(Runnable runnable)
    • securityService

      io.micronaut.security.utils.SecurityService securityService()
      Get security service.
      Returns:
      Security service.