public class Codec extends Object implements Converter<byte[],CharSequence>
| Modifier and Type | Field and Description |
|---|---|
static Codec |
BASE64 |
static Codec |
BASE64URL |
| Constructor and Description |
|---|
Codec(Encoder<byte[],String> encoder,
Decoder<CharSequence,byte[]> decoder) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
applyFrom(CharSequence b)
Converts the specified canonical (RFC-compliant data type) value to the preferred Java idiomatic type.
|
String |
applyTo(byte[] a)
Converts the specified (Java idiomatic type) value to the canonical RFC-required data type.
|
public Codec(Encoder<byte[],String> encoder, Decoder<CharSequence,byte[]> decoder)
public String applyTo(byte[] a)
ConverterapplyTo in interface Converter<byte[],CharSequence>a - the preferred idiomatic valuepublic byte[] applyFrom(CharSequence b)
ConverterapplyFrom in interface Converter<byte[],CharSequence>b - the canonical value to convertCopyright © 2014–2024 jsonwebtoken.io. All rights reserved.