Base64NormalAdapter |
We must use this adapter for correct JSON serialization and deserialization. This is because the Base64NormalString is a wrapper around a String, so we would get an object in JSON after serializing. class Base64NormalAdapter |
Base64NormalString |
See Base64String. This subclass uses "normal" base64 encoding and decoding. The resulting encoded string is not split into chunks, as is the case when using Base64.DEFAULT mode. Note: the constructor expects an already encoded string. You can use companion object functions to get an encoded string or byte array. class Base64NormalString : Base64String |
Base64String |
This class represents a base64 string. It uses an Android implementation of base64 encoding and decoding, because the one from Java is available only for API >= 26. abstract class Base64String |
Base64UrlAdapter |
We must use this adapter for correct JSON serialization and deserialization. This is because the Base64UrlString is a wrapper around a String, so we would get an object in JSON after serializing. class Base64UrlAdapter |
Base64UrlString |
See Base64String. This subclass uses URL safe base64 encoding and decoding. Note: the constructor expects an already encoded string. You can use companion object functions to get an encoded string or byte array. class Base64UrlString : Base64String |