Esempio n. 1
0
 /**
  * @ignore
  */
 public function jwsDecode($hash, $authentication)
 {
     $http = new Simplify_HTTP();
     $data = $http->jwsDecode($authentication, $hash);
     return json_decode($data, true);
 }
Esempio n. 2
0
 /**
  * @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);
 }