Свойство | Type | Description | |
---|---|---|---|
$encodedSignature | |||
$encryptionEngine | |||
$isSigned | |||
$signature | |||
$supportedEncryptionEngines |
Méthode | Description | |
---|---|---|
__construct ( array $header = [], string $encryptionEngine = 'OpenSSL' ) | Constructor. | |
getEncodedSignature ( ) : string | Returns the base64 encoded signature. | |
getSignature ( ) : string | Returns the signature representation of the JWS. | |
getTokenString ( ) : string | Returns the string representing the JWT. | |
isSigned ( ) : boolean | Checks whether the JSW has already been signed. | |
load ( string $jwsTokenString, boolean $allowUnsecure = false, Namshi\JOSE\Base64\Encoder $encoder = null, string $encryptionEngine = 'OpenSSL' ) : |
Creates an instance of a JWS from a JWT. | |
setEncodedSignature ( string $encodedSignature ) : |
Sets the base64 encoded signature. | |
sign ( resource | string $key, $password = null ) : string | Signs the JWS signininput. | |
verify ( resource | string $key, string $algo = null ) : boolean | Verifies that the internal signin input corresponds to the encoded signature previously stored (@see JWS::load). |
Méthode | Description | |
---|---|---|
getSigner ( ) : Namshi\JOSE\Signer\SignerInterface | Returns the signer responsible to encrypting / decrypting this JWS. |
public __construct ( array $header = [], string $encryptionEngine = 'OpenSSL' ) | ||
$header | array | An associative array of headers. The value can be any type accepted by json_encode or a JSON serializable object |
$encryptionEngine | string | } |
public getEncodedSignature ( ) : string | ||
Résultat | string |
public getSignature ( ) : string | ||
Résultat | string |
protected getSigner ( ) : Namshi\JOSE\Signer\SignerInterface | ||
Résultat | Namshi\JOSE\Signer\SignerInterface |
public getTokenString ( ) : string | ||
Résultat | string |
public setEncodedSignature ( string $encodedSignature ) : |
||
$encodedSignature | string | |
Résultat |