Class Base64UrlCodec
- java.lang.Object
-
- com.github.f4b6a3.uuid.codec.base.BaseNCodec
-
- com.github.f4b6a3.uuid.codec.base.Base64UrlCodec
-
public final class Base64UrlCodec extends BaseNCodec
Codec for base-64-url as defined in RFC-4648. It is case SENSITIVE. The only difference between base-64 and base-64-url is that the second substitutes the chars '+' and '/' with '-' and '_'. This codec complies with RFC-4648, encoding a byte array sequentially. If you need a codec that encodes integers using the remainder operator (modulus), use the static factoryBaseNCodec.newInstance(BaseN). See: https://tools.ietf.org/html/rfc4648
-
-
Field Summary
Fields Modifier and Type Field Description static Base64UrlCodecINSTANCEA shared immutable instance.-
Fields inherited from class com.github.f4b6a3.uuid.codec.base.BaseNCodec
base, decoder, encoder
-
-
Constructor Summary
Constructors Constructor Description Base64UrlCodec()
-
Method Summary
-
Methods inherited from class com.github.f4b6a3.uuid.codec.base.BaseNCodec
decode, encode, getBase, newInstance, newInstance, newInstance
-
-
-
-
Field Detail
-
INSTANCE
public static final Base64UrlCodec INSTANCE
A shared immutable instance.
-
-