PushParser

Provides the ability to parse URI scheme into a convenient format to use with configuring a PushMechanism to receive push notifications.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val ACCOUNT_NAME: String = "accountname"
The identity account name
Link copied to clipboard
The AM load balance cookie
Link copied to clipboard
The endpoint used for authentication
Link copied to clipboard
Link copied to clipboard
private val BASE_64_URL_CHALLENGE: String = "c"
Link copied to clipboard
private val BASE_64_URL_IMAGE: String = "image"
Link copied to clipboard
private val BASE_64_URL_REG_ENDPOINT: String = "r"
Link copied to clipboard
Link copied to clipboard
val BG_COLOR: String = "b"
The identity color
Link copied to clipboard
val CHALLENGE: String = "c"
The challenge to use for the response
Link copied to clipboard
val CONTEXT_INFO: String = "x"
The key for the context info.
Link copied to clipboard
The Time To Live of the notification
Link copied to clipboard
val IMAGE: String = "image"
The identity image
Link copied to clipboard
val ISSUER: String = "issuer"
The IDP that issued the URI
Link copied to clipboard
The mechanism UID associated with the notification
Link copied to clipboard
val MESSAGE_ID: String = "m"
The message id to use for response
Link copied to clipboard
The notification message
Link copied to clipboard
The key for the challenge numbers type.
Link copied to clipboard
val POLICIES: String = "policies"
The Authenticator Policies.
Link copied to clipboard
val PUSH_TYPE: String = "k"
The key for the push notification type.
Link copied to clipboard
The endpoint used for registration
Link copied to clipboard
val SCHEME: String = "scheme"
The protocol of the URI
Link copied to clipboard
The shared secret used for signing
Link copied to clipboard
private val SLASH: String = "/"
Link copied to clipboard
private val TAG: String
Link copied to clipboard
The time interval when the notification was created.
Link copied to clipboard
val TTL: String = "t"
The Time To Live of the notification
Link copied to clipboard
val TYPE: String = "authority"
The type of OTP (TOTP or HOTP)
Link copied to clipboard
val UNTITLED: String = "Untitled"
Unknown identity
Link copied to clipboard
val VERSION: String = "version"
The URI API Version

Functions

Link copied to clipboard
protected fun containsNonEmpty(values: Map<String, String>, key: String): Boolean
Link copied to clipboard
Link copied to clipboard
protected open fun getBase64DecodedString(value: String): String
Link copied to clipboard
protected open fun getUriParameters(uriString: String): Map<String, String>
Link copied to clipboard
protected open fun isBase64Encoded(value: String): Boolean
Link copied to clipboard
fun map(uriScheme: String): Map<String, String>
Call through to map
Link copied to clipboard
protected open fun postProcess(values: Map<String, String>): Map<String, String>
Validates the parsed URI values
Link copied to clipboard
protected open fun split(s: String, sep: String): Array<String>