aries / net.globalid.aries.utils.base64 / Base64NormalString

Base64NormalString

class Base64NormalString : Base64String

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.

Constructors

<init>

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.

Base64NormalString(encoded: String)

Properties

flags

val flags: Int

Companion Object Functions

encodeByteArray

Encodes the given byte array into a base64 string.

fun encodeByteArray(byteArray: ByteArray): Base64NormalString

encodeString

Encodes the given string into a base64 string by first converting it into a byte array using an UTF-8 charset and then encoding it.

fun encodeString(text: String): Base64NormalString