@Component(value="anterosSecurityManager") @ComponentScan(value="br.com.anteros.security.spring") public class AnterosSecurityManager extends Object implements org.springframework.security.authentication.AuthenticationProvider, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
adminNeedsPermission |
protected AnterosSecurityService |
anterosSecurityService |
protected String |
description |
protected String |
packageToScanSecurity |
protected String |
systemName |
protected String |
version |
| Constructor and Description |
|---|
AnterosSecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
void |
configure() |
String |
getDescription() |
String |
getPackageToScanSecurity() |
org.springframework.security.authentication.encoding.PasswordEncoder |
getPasswordEncoder() |
org.springframework.security.authentication.dao.SaltSource |
getSaltSource() |
String |
getSystemName() |
String |
getVersion() |
boolean |
isAdminNeedsPermission() |
protected void |
loadSecuredResourcesAndActions(List<Class<?>> classes) |
protected void |
scanPackages() |
AnterosSecurityManager |
setAdminNeedsPermission(boolean adminNeedsPermission) |
AnterosSecurityManager |
setDescription(String description) |
AnterosSecurityManager |
setPackageToScanSecurity(String packageToScanSecurity) |
void |
setPasswordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder passwordEncoder) |
void |
setSaltSource(org.springframework.security.authentication.dao.SaltSource saltSource) |
AnterosSecurityManager |
setSystemName(String systemName) |
AnterosSecurityManager |
setVersion(String version) |
boolean |
supports(Class<?> authentication) |
protected String packageToScanSecurity
protected String systemName
protected String description
protected String version
protected boolean adminNeedsPermission
@Autowired protected AnterosSecurityService anterosSecurityService
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate in interface org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic boolean supports(Class<?> authentication)
supports in interface org.springframework.security.authentication.AuthenticationProviderpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected void scanPackages()
protected void loadSecuredResourcesAndActions(List<Class<?>> classes)
public String getPackageToScanSecurity()
public AnterosSecurityManager setPackageToScanSecurity(String packageToScanSecurity) throws Exception
Exceptionpublic String getSystemName()
public AnterosSecurityManager setSystemName(String systemName) throws Exception
Exceptionpublic String getDescription()
public AnterosSecurityManager setDescription(String description) throws Exception
Exceptionpublic String getVersion()
public AnterosSecurityManager setVersion(String version) throws Exception
Exceptionpublic org.springframework.security.authentication.encoding.PasswordEncoder getPasswordEncoder()
public void setPasswordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder passwordEncoder)
public org.springframework.security.authentication.dao.SaltSource getSaltSource()
public void setSaltSource(org.springframework.security.authentication.dao.SaltSource saltSource)
public boolean isAdminNeedsPermission()
public AnterosSecurityManager setAdminNeedsPermission(boolean adminNeedsPermission) throws Exception
ExceptionCopyright © 2016 Anteros Tecnologia. All rights reserved.