public abstract class LoginInterceptor extends Object implements net.sourceforge.stripes.controller.Interceptor
Modifier and Type | Field and Description |
---|---|
protected List<Class<? extends BaseStripesBean>> |
allow |
protected Auditor |
auditor |
protected Authenticator |
authenticator |
protected List<Class<? extends BaseStripesBean>> |
autolog |
protected com.knowgate.encryption.PasswordEncryption |
encryptionMethod |
String |
ERROR_CODE_AUTHENTICATION_FAILED |
String |
ERROR_CODE_EXPIRED |
String |
ERROR_CODE_INVALID |
protected static ConcurrentSkipListSet<String> |
loggedIn |
protected static ConcurrentHashMap<String,SessionData> |
sessions |
protected String |
tokenName |
Constructor and Description |
---|
LoginInterceptor(String tokenName,
com.knowgate.encryption.PasswordEncryption encryptionMethod) |
Modifier and Type | Method and Description |
---|---|
protected abstract com.knowgate.tuples.Pair<Boolean,String> |
autolog(Map<String,Object> params) |
abstract void |
closeSession(String sessionToken) |
abstract String |
createSession(Credentials credentials,
String sIPAddr) |
List<Class<? extends BaseStripesBean>> |
getAllowed() |
Auditor |
getAuditor() |
Authenticator |
getAuthenticator() |
List<Class<? extends BaseStripesBean>> |
getAutologged() |
abstract SessionData |
getSessionData(String sessionToken) |
abstract net.sourceforge.stripes.action.Resolution |
handleException(Class<? extends BaseStripesBean> beanClass,
Exception xcpt) |
net.sourceforge.stripes.action.Resolution |
intercept(net.sourceforge.stripes.controller.ExecutionContext execContext) |
protected boolean |
isAjaxBean(Class<? extends BaseStripesBean> clazz) |
boolean |
isAllowed(Class<? extends BaseStripesBean> clazz) |
boolean |
isAutologged(Class<? extends BaseStripesBean> clazz) |
boolean |
isLoggedIn(String userId) |
abstract void |
reapSessions(long lMaxKeepAlive)
Called from the session reaper daemon thread every n-minutes for maintaining the pool clean
|
abstract net.sourceforge.stripes.action.Resolution |
resolve(Class<? extends BaseStripesBean> clazz,
String errorCode,
String lastUrl) |
void |
setAllowed(List<Class<? extends BaseStripesBean>> allowed) |
void |
setAuditor(Auditor auditorImpl) |
void |
setAuthenticator(Authenticator authenticatorImpl) |
void |
setAutolog(List<Class<? extends BaseStripesBean>> autologged) |
public final String ERROR_CODE_EXPIRED
public final String ERROR_CODE_INVALID
public final String ERROR_CODE_AUTHENTICATION_FAILED
protected Authenticator authenticator
protected Auditor auditor
protected final com.knowgate.encryption.PasswordEncryption encryptionMethod
protected final String tokenName
protected static final ConcurrentHashMap<String,SessionData> sessions
protected static final ConcurrentSkipListSet<String> loggedIn
protected List<Class<? extends BaseStripesBean>> autolog
protected List<Class<? extends BaseStripesBean>> allow
public LoginInterceptor(String tokenName, com.knowgate.encryption.PasswordEncryption encryptionMethod)
public Auditor getAuditor()
public void setAuditor(Auditor auditorImpl)
public Authenticator getAuthenticator()
public void setAuthenticator(Authenticator authenticatorImpl)
public boolean isLoggedIn(String userId)
protected boolean isAjaxBean(Class<? extends BaseStripesBean> clazz)
public List<Class<? extends BaseStripesBean>> getAllowed()
public boolean isAllowed(Class<? extends BaseStripesBean> clazz)
public void setAllowed(List<Class<? extends BaseStripesBean>> allowed)
public List<Class<? extends BaseStripesBean>> getAutologged()
public boolean isAutologged(Class<? extends BaseStripesBean> clazz)
public void setAutolog(List<Class<? extends BaseStripesBean>> autologged)
public abstract SessionData getSessionData(String sessionToken)
public abstract net.sourceforge.stripes.action.Resolution resolve(Class<? extends BaseStripesBean> clazz, String errorCode, String lastUrl)
public abstract net.sourceforge.stripes.action.Resolution handleException(Class<? extends BaseStripesBean> beanClass, Exception xcpt)
protected abstract com.knowgate.tuples.Pair<Boolean,String> autolog(Map<String,Object> params)
public abstract String createSession(Credentials credentials, String sIPAddr) throws IllegalStateException, InstantiationException
public abstract void closeSession(String sessionToken)
public abstract void reapSessions(long lMaxKeepAlive)
public net.sourceforge.stripes.action.Resolution intercept(net.sourceforge.stripes.controller.ExecutionContext execContext)
intercept
in interface net.sourceforge.stripes.controller.Interceptor
Copyright © 2019 KnowGate. All rights reserved.