UriParser

abstract class UriParser

Base class for URI parsers with common functionality.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
protected object Companion

Functions

Link copied to clipboard
protected fun decodeBase64(value: String): String

Decode a Base64 encoded string.

Link copied to clipboard
protected fun decodeBase64Url(value: String): String

Decode a Base64 URL encoded string.

Link copied to clipboard
protected fun encodeBase64(value: String): String

Encode a string as Base64.

Link copied to clipboard
protected fun formatBackgroundColor(backgroundColor: String?): String?

Format the background color for URI inclusion. Removes # prefix if present.

Link copied to clipboard
protected fun isBase64Encoded(value: String): Boolean

Check if a string is Base64 encoded.

Link copied to clipboard
protected fun parseLabelComponents(label: String, issuerParam: String?): Pair<String, String>

Parse the issuer and accountName from the label component of a URI.

Link copied to clipboard

Recode a Base64 URL encoded value to a Base64 encoded value without URL-safe.

Link copied to clipboard

Recode a Base64 encoded value to URL-safe Base64 encoding with wrapping.