ad_verify_signature (public)
ad_verify_signature [ -secret secret ] value signature
Defined in packages/acs-tcl/tcl/security-procs.tcl
Verifies a digital signature. Returns 1 for success, and 0 for failed validation. Validation can fail due to tampering or expiration of signature.
- Switches:
- -secret (optional)
- specifies an external secret to use instead of the one provided by the ACS signature mechanism.
- Parameters:
- value (required)
- signature (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if {![string is list $signature]} { ns_log warning "signature is not a list '$signature'" return 0 } lassign $signature token_id expire_time hash return [__ad_verify_signature $value $token_id $secret $expire_time $hash]Generic XQL file: packages/acs-tcl/tcl/security-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/security-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/security-procs-oracle.xql