aries / net.globalid.aries.utils.base64 / Base64UrlString

Base64UrlString

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.

Constructors

<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)

Properties

flags

val flags: Int

Companion Object Functions

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