| Modifier and Type | Method and Description |
|---|---|
static AuthToken |
AuthTokenUtil.consumeToken(String encodedJson)
Consumes an auth token, validating it during the process.
|
static AuthToken |
AuthTokenUtil.createAuthToken(String principal,
Set<String> roles,
int expiresInMillis)
Creates an auth token.
|
static AuthToken |
AuthTokenUtil.fromJSON(String json)
Read the auth token from the JSON string.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AuthTokenUtil.signAuthToken(AuthToken token)
Adds a digital signature to the auth token.
|
static String |
AuthTokenUtil.toJSON(AuthToken token)
Convert the auth token to a JSON string.
|
static void |
AuthTokenUtil.validateToken(AuthToken token)
Validates an auth token.
|
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.