Свойство | Тип | Описание | |
---|---|---|---|
$encodePolicy | |||
$ignores | |||
$sort |
Метод | Описание | |
---|---|---|
__construct ( array $params = [] ) | ||
convertKey ( $key, $type ) : string | Convert one line key to standard format | |
format ( $key, $type ) : string | Convert key to standard format | |
getContentToSign ( ) | ||
getIgnores ( ) : array | ||
getParamsToSign ( ) : mixed | ||
setEncodePolicy ( integer $encodePolicy ) : |
||
setIgnores ( array $ignores ) | ||
setSort ( boolean $sort ) : |
||
signContentWithRSA ( $content, $privateKey, $alg = OPENSSL_ALGO_SHA1 ) | ||
signWithMD5 ( $key ) | ||
signWithRSA ( $privateKey, $alg = OPENSSL_ALGO_SHA1 ) | ||
verifyWithMD5 ( $content, $sign, $key ) | ||
verifyWithRSA ( $content, $sign, $publicKey, $alg = OPENSSL_ALGO_SHA1 ) |
Метод | Описание | |
---|---|---|
sort ( &$params ) | ||
unsetKeys ( &$params ) |
Метод | Описание | |
---|---|---|
filter ( $params ) | ||
prefix ( $key ) : string | Prefix the key path with 'file://' |
public convertKey ( $key, $type ) : string | ||
$key | ||
$type | ||
Результат | string |
public setEncodePolicy ( integer $encodePolicy ) : |
||
$encodePolicy | integer | |
Результат |
public signContentWithRSA ( $content, $privateKey, $alg = OPENSSL_ALGO_SHA1 ) |
public verifyWithRSA ( $content, $sign, $publicKey, $alg = OPENSSL_ALGO_SHA1 ) |