/** * @ignore */ public function jwsDecode($hash, $authentication) { $http = new Simplify_HTTP(); $data = $http->jwsDecode($authentication, $hash); return json_decode($data, true); }
/** * @ignore */ public function jwsDecode($hash, $publicKey = null, $privateKey = null) { $http = new Simplify_HTTP(); if ($publicKey == null) { $publicKey = Simplify::$publicKey; } if ($privateKey == null) { $privateKey = Simplify::$privateKey; } $data = $http->jwsDecode($publicKey, $privateKey, $hash); return json_decode($data, true); }