Property | Type | Description | |
---|---|---|---|
$encodedSignature | |||
$encryptionEngine | |||
$isSigned | |||
$signature | |||
$supportedEncryptionEngines |
Method | 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). |
Method | 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 | ||
return | string |
public getSignature ( ) : string | ||
return | string |
protected getSigner ( ) : Namshi\JOSE\Signer\SignerInterface | ||
return | Namshi\JOSE\Signer\SignerInterface |
public getTokenString ( ) : string | ||
return | string |
public setEncodedSignature ( string $encodedSignature ) : |
||
$encodedSignature | string | |
return |