|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.pool.RecyclableSupport org.norther.tammi.core.pool.PoolableSupport org.norther.tammi.spray.engine.tool.GlobalTool org.norther.tammi.spray.engine.tool.ContextTool org.norther.tammi.spray.authenticator.tool.UserTool
public class UserTool
A request context tool for user info.
Constructor Summary | |
---|---|
UserTool()
Constructs a new info. |
Method Summary | |
---|---|
boolean |
checkAuthenticated()
Checks whether the user is authenticated and not logged out. |
void |
dispose()
Disposes the object by setting its disposed flag. |
protected AuthenticatorFilter |
getAuthenticatorFilter()
Gets the authenticator filter from the filter stack. |
String |
getAuthType()
Gets the name of the authentication scheme used to protect the current pipe, for example, "BASIC" or "SSL" or null if the pipe was not protected. |
String |
getForgetOption()
Gets the forget option. |
protected HttpFilter |
getHttpFilter()
Gets the protocol filter from the filter stack. |
String |
getIdentity()
Gets the crypted identity of the user. |
String |
getLoginAction()
Gets the login action. |
int |
getLoginAge()
Gets the login age. |
int |
getLoginAttempts()
Gets the number of login attempts made. |
String |
getLoginCheck()
Gets the login check. |
String |
getLoginURL()
Gets the login URL. |
String |
getLogoutAction()
Gets the logout action. |
String |
getLogoutURL()
Gets the logout URL. |
String |
getPasswordField()
Gets the password field. |
String |
getRealName()
Gets the real name of the user. |
String |
getRememberOption()
Gets the remember option. |
String |
getRemoteUser()
Gets the username of the remote user. |
String |
getUsernameField()
Gets the username field. |
boolean |
isAnonymous()
Checks whether the user is anonymous. |
boolean |
isAuthenticated()
Checks whether the user is authenticated. |
boolean |
isAuthenticationRequired()
Checks whether authentication is required. |
boolean |
isAutoLoginEnabled()
Checks whether automatic login is enabled. |
boolean |
isUserInRole(String role)
Checks whether the authenticated user is included in the specified logical "role". |
void |
logout()
Logs out a user by invalidating the current session. |
void |
setAutoLoginEnabled(boolean flag)
Sets whether automatic login is enabled. |
Methods inherited from class org.norther.tammi.spray.engine.tool.ContextTool |
---|
getFilter, getFilterChain, getFilterKey, getPrincipal, getRequest, getResponse, isFilterChanged |
Methods inherited from class org.norther.tammi.spray.engine.tool.GlobalTool |
---|
clone, getContext, getContextToolFilter, getMBeanServer, isBound, nop, toString, valueBound, valueUnbound |
Methods inherited from class org.norther.tammi.core.pool.PoolableSupport |
---|
disposed, recycled |
Methods inherited from class org.norther.tammi.core.pool.RecyclableSupport |
---|
isDisposed, recycle |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.norther.tammi.core.pool.Recyclable |
---|
isDisposed, recycle |
Constructor Detail |
---|
public UserTool()
Method Detail |
---|
public void dispose()
RecyclableSupport
dispose
in interface Recyclable
dispose
in class ContextTool
public String getLoginCheck()
public String getLoginAction()
public String getLogoutAction()
public String getUsernameField()
public String getPasswordField()
public String getRememberOption()
public String getForgetOption()
public boolean isAuthenticationRequired()
public int getLoginAttempts()
public String getRemoteUser()
public String getRealName()
public String getIdentity()
public boolean isAuthenticated()
public boolean checkAuthenticated()
public boolean isAnonymous()
public String getAuthType()
public boolean isUserInRole(String role)
role
- the role to check.
public int getLoginAge()
public String getLoginURL()
public String getLogoutURL()
public boolean isAutoLoginEnabled()
public void setAutoLoginEnabled(boolean flag)
flag
- true or false.public void logout()
protected HttpFilter getHttpFilter()
protected AuthenticatorFilter getAuthenticatorFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |