verify

fun verify(predicate: CallIdVerifier)

Verify retrieved or generated call ids using the specified predicate. Should return true for valid call ids, false to ignore an illegal retrieved or generated call id or throw an RejectedCallIdException to reject an ApplicationCall. Only one verify condition could be specified. It is not recommended to disable verification (allow all call id values) as it could be abused so that it may become a security risk. By default there is always the default verifier against CALL_ID_DEFAULT_DICTIONARY so all illegal call ids will be discarded.

See also


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

Verify retrieved or generated call ids against the specified dictionary. Rejects an ApplicationCall if reject is true otherwise an illegal call id will be simply ignored. Only one verify condition or dictionary could be specified