public class Tokens extends Object
| Constructor and Description |
|---|
Tokens() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
getDisplayableTokenIDsText(Set<String> tokenIds) |
static String |
getTokenDisplayText(String token)
Get a String derived from a JWT String, which is suitable for presentation (e.g., logging) without compromising
security.
|
static String |
getTokenIDDisplayText(String uuid)
Get a String derived from a Knox token UUID String, which is suitable for presentation (e.g., logging) without
compromising security.
|
public static String getTokenDisplayText(String token)
token - A BASE64-encoded JWT String.public static String getTokenIDDisplayText(String uuid)
uuid - A Knox token UUID String.Copyright © 2022 The Apache Software Foundation. All rights reserved.