Class ActuatorAuthProperties
- java.lang.Object
-
- org.bremersee.actuator.security.authentication.ActuatorAuthProperties
-
@ConfigurationProperties(prefix="bremersee.actuator.auth") @Validated public class ActuatorAuthProperties extends Object
Actuator authentication and authorization properties.- Author:
- Christian Bremer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classActuatorAuthProperties.ActuatorPasswordFlowOAuth2 password flow configuration properties.
-
Constructor Summary
Constructors Constructor Description ActuatorAuthProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Set<String>adminRolesOrDefaults()Admin roles or defaults.@NotNull StringbuildAccessExpression()Build access expression (SpEL) for actuator endpoints.@NotNull StringbuildAdminAccessExpression()Build access expression (SpEL) for admin actuator endpoints.@NotNull StringensureRolePrefix(@NotNull String role)Ensure role prefix.@NotNull Set<String>rolesOrDefaults()Roles or defaults.@NotNull List<Class<?>>unauthenticatedEndpointsOrDefaults()Gets unauthenticated endpoints or defaults (these are the health and info endpoints).
-
-
-
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
-
-