protected static class XSRFToken.TokenHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.security.SecureRandom |
rnd |
protected byte[] |
salt |
protected javax.crypto.Mac |
sha256 |
protected long |
timeout |
| Modifier | Constructor and Description |
|---|---|
protected |
TokenHandler(java.lang.String secret,
long maxAge) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isValid(java.lang.String token) |
protected java.lang.String |
nextToken() |
protected final long timeout
protected final javax.crypto.Mac sha256
protected final java.security.SecureRandom rnd
protected final byte[] salt