Class PrePostAuthorizeHintsRegistrar
java.lang.Object
org.springframework.security.aot.hint.PrePostAuthorizeHintsRegistrar
- All Implemented Interfaces:
SecurityHintsRegistrar
A
SecurityHintsRegistrar
that scans all beans for methods that use
PreAuthorize
or PostAuthorize
and registers appropriate hints for the
annotations.- Since:
- 6.4
- See Also:
-
SecurityHintsAotProcessor
PrePostAuthorizeExpressionBeanHintsRegistrar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerHints
(org.springframework.aot.hint.RuntimeHints hints, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) Register hints after preparing them through Security's infrastructural beans
-
Constructor Details
-
PrePostAuthorizeHintsRegistrar
public PrePostAuthorizeHintsRegistrar()
-
-
Method Details
-
registerHints
public void registerHints(org.springframework.aot.hint.RuntimeHints hints, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) Description copied from interface:SecurityHintsRegistrar
Register hints after preparing them through Security's infrastructural beans- Specified by:
registerHints
in interfaceSecurityHintsRegistrar
- Parameters:
hints
- the registration target for any AOT hintsbeanFactory
- the bean factory
-