| |
|
| java.lang.Object sunlabs.brazil.handler.Token
Token | public class Token (Code) | | Manage supplier.net session tokens.
Each token represents a "credentials lease" for a sun.net session.
Used by
SunNetAuthHandler |
getAge | public int getAge()(Code) | | Get the total age of this token in seconds
|
getId | public String getId()(Code) | | Get the unique id associated with this token.
|
getIdle | public int getIdle()(Code) | | Get the idle time of this token in seconds
|
getRoles | public Vector getRoles()(Code) | | Get the roles associated with this token
|
getToken | public static Token getToken(String cookie)(Code) | | Find the token assosiated with this cookie.
Create a new one if it doesn't exist
|
getUses | public int getUses()(Code) | | Get the number of uses of this token
|
haveToken | public static boolean haveToken(String cookie)(Code) | | Check to see if a token exists
true if there was a token |
removeToken | public static boolean removeToken(String cookie)(Code) | | Remove the token associated with this cookie
true if there was a token to remove |
setArg | public void setArg(Object arg)(Code) | | Set the client data
|
setToken | public void setToken(String id, String roles)(Code) | | Set the id and roles associated with this token
Parameters: id - The unique identifier for this token Parameters: roles - The white space delimited set of roles |
toString | public String toString()(Code) | | Print a prettier version of this instance
|
|
|
|