public class SpringSecurity3Service extends AbstractSecurityService implements ApplicationContextAware, ApplicationEventPublisherAware
AUTH_TYPE| Constructor and Description |
|---|
SpringSecurity3Service() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsContext()
A security service can optionally indicate that it's able to authorize requests that are not HTTP requests
(websockets).
|
Object |
authorize(AbstractSecurityContext context) |
void |
configure(Map<String,String> params) |
protected void |
handleAuthenticationExceptions(org.springframework.security.core.AuthenticationException e) |
protected void |
handleAuthorizationExceptions(InvocationTargetException e) |
protected boolean |
isAuthenticated(org.springframework.security.core.Authentication authentication) |
protected boolean |
isUserInRole(org.springframework.security.core.Authentication authentication,
String role) |
void |
login(Object credentials,
String charset) |
void |
logout() |
void |
lookupAuthenticationManager(ApplicationContext ctx,
String authenticationManagerBeanName) |
void |
setAllowAnonymousAccess(boolean allowAnonymousAccess) |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setApplicationEventPublisher(ApplicationEventPublisher eventPublisher) |
void |
setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager) |
void |
setAuthenticationTrustResolver(org.springframework.security.authentication.AuthenticationTrustResolver authenticationTrustResolver) |
void |
setPasswordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder passwordEncoder) |
void |
setSecurityContextRepository(org.springframework.security.web.context.SecurityContextRepository securityContextRepository) |
void |
setSecurityInterceptor(AbstractSpringSecurity3Interceptor securityInterceptor) |
void |
setSessionAuthenticationStrategy(org.springframework.security.web.authentication.session.SessionAuthenticationStrategy sessionAuthenticationStrategy) |
protected boolean |
userCanAccessService(AbstractSecurityContext context,
org.springframework.security.core.Authentication authentication) |
decodeBase64Credentials, endAuthorization, endLogin, endLogout, handleSecurityException, login, startAuthorization, tryReloginpublic SpringSecurity3Service()
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext in interface ApplicationContextAwarepublic void setApplicationEventPublisher(ApplicationEventPublisher eventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwarepublic void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
public void setAuthenticationTrustResolver(org.springframework.security.authentication.AuthenticationTrustResolver authenticationTrustResolver)
public void setAllowAnonymousAccess(boolean allowAnonymousAccess)
public void setSecurityContextRepository(org.springframework.security.web.context.SecurityContextRepository securityContextRepository)
public void setSecurityInterceptor(AbstractSpringSecurity3Interceptor securityInterceptor)
public void setSessionAuthenticationStrategy(org.springframework.security.web.authentication.session.SessionAuthenticationStrategy sessionAuthenticationStrategy)
public void setPasswordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder passwordEncoder)
public void configure(Map<String,String> params)
configure in interface SecurityServicepublic void login(Object credentials, String charset)
login in interface SecurityServiceprotected void handleAuthenticationExceptions(org.springframework.security.core.AuthenticationException e)
public void lookupAuthenticationManager(ApplicationContext ctx, String authenticationManagerBeanName) throws SecurityServiceException
SecurityServiceExceptionpublic Object authorize(AbstractSecurityContext context) throws Exception
authorize in interface SecurityServiceExceptionpublic boolean acceptsContext()
AbstractSecurityServiceSecurityService.authorize(AbstractSecurityContext) will be
invoked in a ServletGraniteContext and not in a HttpGraniteContextacceptsContext in interface SecurityServiceacceptsContext in class AbstractSecurityServiceHttpGraniteContext is mandatedpublic void logout()
logout in interface SecurityServiceprotected boolean isUserInRole(org.springframework.security.core.Authentication authentication, String role)
protected boolean isAuthenticated(org.springframework.security.core.Authentication authentication)
protected boolean userCanAccessService(AbstractSecurityContext context, org.springframework.security.core.Authentication authentication)
protected void handleAuthorizationExceptions(InvocationTargetException e)