SessionToken#
- public class SessionToken extends SelfValidatingAuthenticationToken#
Session tokens are formatted as JSON arrays with the following elements:
Anything but “O” (upper-case “o”), preferred is “S”.
Realm
name within the Realm
list of roles
list of permissions
time of token generation (long, ms since 1970)
validity duration (long, ms)
salt
checksum
Constructors#
SessionToken#
SessionToken#
Methods#
calcChecksum#
generate#
- public static SessionToken generate(Subject subject)#
parse#
- public static SessionToken parse(Object[] array)#