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 class
ActuatorAuthProperties.ActuatorPasswordFlow
OAuth2 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 String
buildAccessExpression()
Build access expression (SpEL) for actuator endpoints.@NotNull String
buildAdminAccessExpression()
Build access expression (SpEL) for admin actuator endpoints.@NotNull String
ensureRolePrefix(@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
-
-