Class ActuatorAuthProperties


  • @ConfigurationProperties(prefix="bremersee.actuator.auth")
    @Validated
    public class ActuatorAuthProperties
    extends Object
    Actuator authentication and authorization properties.
    Author:
    Christian Bremer
    • Constructor Detail

      • ActuatorAuthProperties

        public ActuatorAuthProperties()
    • Method Detail

      • unauthenticatedEndpointsOrDefaults

        @NotNull
        public @NotNull List<Class<?>> unauthenticatedEndpointsOrDefaults()
        Gets unauthenticated endpoints or defaults (these are the health and info endpoints).
        Returns:
        the unauthenticated endpoints
      • rolesOrDefaults

        @NotNull
        public @NotNull Set<String> rolesOrDefaults()
        Roles or defaults.
        Returns:
        the roles
      • adminRolesOrDefaults

        @NotNull
        public @NotNull Set<String> adminRolesOrDefaults()
        Admin roles or defaults.
        Returns:
        the admin roles
      • buildAccessExpression

        @NotNull
        public @NotNull String buildAccessExpression()
        Build access expression (SpEL) for actuator endpoints.
        Returns:
        the access expression (SpEL) for actuator endpoints
      • buildAdminAccessExpression

        @NotNull
        public @NotNull String buildAdminAccessExpression()
        Build access expression (SpEL) for admin actuator endpoints.
        Returns:
        the access expression (SpEL) for admin actuator endpoints
      • ensureRolePrefix

        @NotNull
        public @NotNull String ensureRolePrefix​(@NotNull
                                                @NotNull String role)
        Ensure role prefix.
        Parameters:
        role - the role
        Returns:
        the role with prefix