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:
-
SecurityHintsAotProcessorPrePostAuthorizeExpressionBeanHintsRegistrar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterHints(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:SecurityHintsRegistrarRegister hints after preparing them through Security's infrastructural beans- Specified by:
registerHintsin interfaceSecurityHintsRegistrar- Parameters:
hints- the registration target for any AOT hintsbeanFactory- the bean factory
-