public class JwtAuthenticationUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL
A convenient way to indicate the 'all' quantifier.
|
| Constructor and Description |
|---|
JwtAuthenticationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateToken(String secretKey,
String action,
String resource,
String feedId,
String userId)
Generate JWT token.
|
public static final String ALL
public static String generateToken(String secretKey, String action, String resource, String feedId, String userId)
secretKey - API Secretaction - Action to be performedresource - Target resourcefeedId - FeedId (if null it will not be added to the payload)userId - UserId (if null it will not be added to the payload)Copyright © 2017. All rights reserved.