net.sourceforge.apphere.util
Class TokenGenerator
java.lang.Object
net.sourceforge.apphere.util.TokenGenerator
- public class TokenGenerator
- extends java.lang.Object
- Author:
- Dewi Roberts
To change this generated comment edit the template variable "typecomment":
Window>Preferences>Java>Templates.
To enable and disable the creation of type comments go to
Window>Preferences>Java>Code Generation.
Method Summary |
static java.lang.String |
createToken(int userID,
java.util.Date expires,
java.lang.String ipAddr)
|
static void |
main(java.lang.String[] args)
|
static TokenInfo |
readToken(java.lang.String token)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenGenerator
public TokenGenerator()
createToken
public static java.lang.String createToken(int userID,
java.util.Date expires,
java.lang.String ipAddr)
throws java.net.UnknownHostException
- Throws:
java.net.UnknownHostException
readToken
public static TokenInfo readToken(java.lang.String token)
throws InvalidTokenException
- Throws:
InvalidTokenException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception