Class AuthorizeReturnObjectDataHintsRegistrar
java.lang.Object
org.springframework.security.data.aot.hint.AuthorizeReturnObjectDataHintsRegistrar
- All Implemented Interfaces:
org.springframework.security.aot.hint.SecurityHintsRegistrar
public final class AuthorizeReturnObjectDataHintsRegistrar
extends Object
implements org.springframework.security.aot.hint.SecurityHintsRegistrar
A
SecurityHintsRegistrar that scans all beans for implementations of
RepositoryFactoryBeanSupport, registering the corresponding entity class as a
TypeHint should any if that repository's method
use AuthorizeReturnObject.
It also traverses those found types for other return values.
An instance of this class is published as an infrastructural bean by the
spring-security-config module. However, in the event you need to publish it
yourself, remember to publish it as an infrastructural bean like so:
@Bean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
static SecurityHintsRegistrar proxyThese(AuthorizationProxyFactory proxyFactory) {
return new AuthorizeReturnObjectDataHintsRegistrar(proxyFactory);
}
- Since:
- 6.4
- See Also:
-
AuthorizeReturnObjectCoreHintsRegistrarAuthorizeReturnObjectHintsRegistrar
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorizeReturnObjectDataHintsRegistrar(org.springframework.security.authorization.AuthorizationProxyFactory proxyFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterHints(org.springframework.aot.hint.RuntimeHints hints, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
Constructor Details
-
AuthorizeReturnObjectDataHintsRegistrar
public AuthorizeReturnObjectDataHintsRegistrar(org.springframework.security.authorization.AuthorizationProxyFactory proxyFactory)
-
-
Method Details
-
registerHints
public void registerHints(org.springframework.aot.hint.RuntimeHints hints, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) - Specified by:
registerHintsin interfaceorg.springframework.security.aot.hint.SecurityHintsRegistrar
-