메소드 |
설명 |
|
__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' ) : JWS |
Creates an instance of a JWS from a JWT. |
|
setEncodedSignature ( string $encodedSignature ) : JWS |
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). |
|