|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
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 curent pipe, for example, "BASIC" or "SSL" or null if the pipe was not protected. |
int |
getLoginAge()
Gets the login age. |
int |
getLoginAttempts()
Gets the number of login attempts made. |
String |
getLoginURL()
Gets the login URL. |
String |
getLogoutURL()
Gets the logout URL. |
String |
getRealName()
Gets the real name of the user. |
String |
getRemoteUser()
Gets the username of the remote user. |
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, getName, 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 Recyclabledispose in class ContextToolpublic boolean isAuthenticationRequired()
public int getLoginAttempts()
public String getRemoteUser()
public String getRealName()
public boolean isAuthenticated()
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 AuthenticatorFilter getAuthenticatorFilter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||