class Base64UrlString : Base64String
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.
<init> |
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. Base64UrlString(encoded: String) |
flags |
val flags: Int |
encodeByteArray |
Encodes the given byte array into a base64 URL-safe string. fun encodeByteArray(byteArray: ByteArray): Base64UrlString |
encodeString |
Encodes the given string into a base64 URL-safe string by first converting it into a byte array using an UTF-8 charset and then encoding it. fun encodeString(text: String): Base64UrlString |