Emarref\Jwt\Encryption\EncryptionInterface::getAlgorithmName PHP Method

getAlgorithmName() public method

public getAlgorithmName ( ) : string
return string
    public function getAlgorithmName();

Usage Example

Example #1
0
File: Jws.php Project: emarref/jwt
 public function sign(Token $token)
 {
     $token->addHeader(new Algorithm($this->encryption->getAlgorithmName()));
     $rawSignature = $this->getUnsignedValue($token);
     $signature = $this->encryption->encrypt($rawSignature);
     $token->setSignature($signature);
 }
All Usage Examples Of Emarref\Jwt\Encryption\EncryptionInterface::getAlgorithmName