common / com.schibsted.account.common.util

Package com.schibsted.account.common.util

Types

Logger

object Logger

Md5

object Md5

SecurityUtil

object SecurityUtil

Extensions for External Classes

android.os.Parcel

java.net.URI

kotlin.String

Functions

createBasicAuthHeader

fun createBasicAuthHeader(clientId: String, clientSecret: String): String

Returns string value to be used for basic auth header ("Basic " + base64-encoded string that contains clientId and clientSecret separated by a colon).

decodeBase64

fun decodeBase64(str: String): String

Decodes given Base64 string.

encodeBase64

fun encodeBase64(str: String): String

Encodes given string as Base64.

existsOnClasspath

fun existsOnClasspath(className: String): Boolean

Returns true if a class with the given name exists in the classpath.