public enum TokenEncoding extends Enum<TokenEncoding>
Enum Constant and Description |
---|
BASE64
Base64 token encoding.
|
NONE
No token encoding used (ASCII charset expected).
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(String str) |
String |
encode(byte[] token) |
static TokenEncoding |
getEncodingForBytes(byte[] token) |
static TokenEncoding |
getTokenEncoding(String label) |
String |
toString() |
static TokenEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenEncoding NONE
public static final TokenEncoding BASE64
public static TokenEncoding[] values()
for (TokenEncoding c : TokenEncoding.values()) System.out.println(c);
public static TokenEncoding valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<TokenEncoding>
public String encode(byte[] token)
public byte[] decode(String str)
public static TokenEncoding getTokenEncoding(String label)
public static TokenEncoding getEncodingForBytes(byte[] token)
Copyright © 2023 Hazelcast, Inc.. All rights reserved.