Package com.im.df.impl.db.persist
Class AuthenticationInterceptor
- java.lang.Object
-
- com.im.df.impl.db.persist.AuthenticationInterceptor
-
- All Implemented Interfaces:
org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
@ThreadSafe public class AuthenticationInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
Stores the Authentication object of the current user and allows this to be set to the SecurityContextHolder prior to authorization steps.- Author:
- Tim Dudgeon
-
-
Constructor Summary
Constructors Constructor Description AuthenticationInterceptor()
Creates a new instance of AuthenticationInterceptor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authentication
getAuthentication()
String
getUsername()
Object
invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
void
setAuthentication(org.springframework.security.core.Authentication authentication)
-
-
-
Method Detail
-
setAuthentication
public void setAuthentication(org.springframework.security.core.Authentication authentication)
-
getAuthentication
public org.springframework.security.core.Authentication getAuthentication()
-
getUsername
public String getUsername()
-
-