verify

fun verify(predicate: CallIdVerifier)

Verifies a retrieved or generated call ID. The code below verifies that a call ID is not an empty string:

verify { callId: String ->
callId.isNotEmpty()
}

Note that by default all retrieved/generated call IDs are verified using a default dictionary, which looks as follows:

CALL_ID_DEFAULT_DICTIONARY: String = "abcdefghijklmnopqrstuvwxyz0123456789+/=-"

See also


fun verify(dictionary: String, reject: Boolean = false)

Verifies a retrieved or generated call ID against the specified dictionary. Rejects an ApplicationCall if reject is true; otherwise, an illegal call ID is ignored.

Note that by default all retrieved/generated call IDs are verified using a default dictionary, which looks as follows:

CALL_ID_DEFAULT_DICTIONARY: String = "abcdefghijklmnopqrstuvwxyz0123456789+/=-"