public class SpringSecurity3Service extends org.granite.messaging.service.security.AbstractSecurityService implements ApplicationContextAware
| Constructor and Description |
|---|
SpringSecurity3Service() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsContext() |
Object |
authorize(org.granite.messaging.service.security.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 |
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(org.granite.messaging.service.security.AbstractSecurityContext context,
org.springframework.security.core.Authentication authentication) |
public SpringSecurity3Service()
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext in interface ApplicationContextAwarepublic 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 org.granite.messaging.service.security.SecurityServicepublic void login(Object credentials, String charset)
login in interface org.granite.messaging.service.security.SecurityServiceprotected void handleAuthenticationExceptions(org.springframework.security.core.AuthenticationException e)
public void lookupAuthenticationManager(ApplicationContext ctx, String authenticationManagerBeanName) throws org.granite.messaging.service.security.SecurityServiceException
org.granite.messaging.service.security.SecurityServiceExceptionpublic Object authorize(org.granite.messaging.service.security.AbstractSecurityContext context) throws Exception
authorize in interface org.granite.messaging.service.security.SecurityServiceExceptionpublic boolean acceptsContext()
acceptsContext in interface org.granite.messaging.service.security.SecurityServiceacceptsContext in class org.granite.messaging.service.security.AbstractSecurityServicepublic void logout()
logout in interface org.granite.messaging.service.security.SecurityServiceprotected boolean isUserInRole(org.springframework.security.core.Authentication authentication, String role)
protected boolean isAuthenticated(org.springframework.security.core.Authentication authentication)
protected boolean userCanAccessService(org.granite.messaging.service.security.AbstractSecurityContext context, org.springframework.security.core.Authentication authentication)
protected void handleAuthorizationExceptions(InvocationTargetException e)