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:
2019-05-24 09:09:11 +00:00
parent 5dfb2c2d30
commit dfc3e94e28
2 changed files with 8 additions and 5 deletions

View File

@@ -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))