public class AuthToken extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static int | VALIDITY_TIMEThe VALIDITY_TIME. |
| Constructor and Description |
|---|
AuthToken(SecurityManager secMan,
String password)Creates a token from a password hash. |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object o)Equality based on the token ID. |
String | getExpiryTime()The expiry time as a formatted string. |
String | getId()The unique token ID. |
int | hashCode()Hash code based on the token ID. |
boolean | isValid()Checks whether the AuthToken has expired. |
String | toString()The token ID as a string. |
static final int VALIDITY_TIME
public AuthToken(SecurityManager secMan, String password)
secMan - the security managerpassword - the password to hashpublic boolean equals(Object o)
public String getExpiryTime()
public String getId()
public int hashCode()
public boolean isValid()