@Configuration(proxyBeanMethods=false) @ConditionalOnBean(value=AuditEventRepository.class) @ConditionalOnProperty(prefix="management.auditevents", name="enabled", matchIfMissing=true) public class AuditAutoConfiguration extends Object
Auto-configuration
for AuditEvent
s.Constructor and Description |
---|
AuditAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
AuditListener |
auditListener(AuditEventRepository auditEventRepository) |
AuthenticationAuditListener |
authenticationAuditListener() |
AuthorizationAuditListener |
authorizationAuditListener() |
@Bean @ConditionalOnMissingBean(value=AbstractAuditListener.class) public AuditListener auditListener(AuditEventRepository auditEventRepository)
@Bean @ConditionalOnClass(name="org.springframework.security.authentication.event.AbstractAuthenticationEvent") @ConditionalOnMissingBean(value=AbstractAuthenticationAuditListener.class) public AuthenticationAuditListener authenticationAuditListener() throws Exception
Exception
@Bean @ConditionalOnClass(name="org.springframework.security.access.event.AbstractAuthorizationEvent") @ConditionalOnMissingBean(value=AbstractAuthorizationAuditListener.class) public AuthorizationAuditListener authorizationAuditListener() throws Exception
Exception
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.