PHP Class Jose\Signer

Inheritance: implements jose\SignerInterface, use trait Jose\Behaviour\HasKeyChecker, use trait Jose\Behaviour\HasJWAManager, use trait Jose\Behaviour\HasPayloadConverter
Afficher le fichier Open project: spomky-labs/jose Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $signature_algorithms ) Signer constructor.
createSigner ( array $signature_algorithms )
sign ( Jose\Object\JWSInterface &$jws )

Private Methods

Méthode Description
checkB64HeaderAndCrit ( Jose\Object\SignatureInterface $signature )
computeSignature ( Jose\Object\JWSInterface $jws, Jose\Object\SignatureInterface &$signature )
getInputToSign ( Jose\Object\JWSInterface $jws, Jose\Object\SignatureInterface $signature ) : string
getSignatureAlgorithm ( array $complete_header, Jose\Object\JWKInterface $key ) : Jose\Algorithm\SignatureAlgorithmInterface

Method Details

__construct() public méthode

Signer constructor.
public __construct ( array $signature_algorithms )
$signature_algorithms array

createSigner() public static méthode

public static createSigner ( array $signature_algorithms )
$signature_algorithms array

sign() public méthode

public sign ( Jose\Object\JWSInterface &$jws )
$jws Jose\Object\JWSInterface