public static class CsrfShield.Token
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
validUntil |
protected java.lang.String |
value |
Constructor and Description |
---|
Token(java.lang.String value) |
Token(java.lang.String value,
long timeToLive) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getValue()
Returns token value.
|
int |
hashCode() |
boolean |
isExpired()
Returns
true if token is expired. |
protected final java.lang.String value
protected final long validUntil
public Token(java.lang.String value)
public Token(java.lang.String value, long timeToLive)
public boolean isExpired()
true
if token is expired.public java.lang.String getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2003-present Jodd Team