jwt : pass the not needed method to private
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5284 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
4
jwt.php
4
jwt.php
@@ -104,7 +104,7 @@ class jwt
|
||||
* @param string $alg The algorithm to use to sign the input
|
||||
* @return boolean Return true if the input signed is valid
|
||||
*/
|
||||
public function verify ($input, $sign, $key, $alg)
|
||||
private function verify ($input, $sign, $key, $alg)
|
||||
// {{{
|
||||
{
|
||||
$signature = $this->sign ($input, $key, $alg);
|
||||
@@ -137,7 +137,7 @@ class jwt
|
||||
* @param string $alg The algorithm to use to sign
|
||||
* @return string The signed string in binary
|
||||
*/
|
||||
public function sign ($input, $key, $alg)
|
||||
private function sign ($input, $key, $alg)
|
||||
// {{{
|
||||
{
|
||||
if (! key_exists ($alg, $this->supportedAlgs))
|
||||
|
||||
Reference in New Issue
Block a user