PHP Class Omnipay\Alipay\Common\Signer

Afficher le fichier Open project: lokielse/omnipay-alipay Class Usage Examples

Protected Properties

Свойство Type Description
$encodePolicy
$ignores
$sort

Méthodes publiques

Méthode Description
__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 ) : Signer
setIgnores ( array $ignores )
setSort ( boolean $sort ) : Signer
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 )

Méthodes protégées

Méthode Description
sort ( &$params )
unsetKeys ( &$params )

Private Methods

Méthode Description
filter ( $params )
prefix ( $key ) : string Prefix the key path with 'file://'

Method Details

__construct() public méthode

public __construct ( array $params = [] )
$params array

convertKey() public méthode

Convert one line key to standard format
public convertKey ( $key, $type ) : string
$key
$type
Résultat string

format() public méthode

Convert key to standard format
public format ( $key, $type ) : string
$key
$type
Résultat string

getContentToSign() public méthode

public getContentToSign ( )

getIgnores() public méthode

public getIgnores ( ) : array
Résultat array

getParamsToSign() public méthode

public getParamsToSign ( ) : mixed
Résultat mixed

setEncodePolicy() public méthode

public setEncodePolicy ( integer $encodePolicy ) : Signer
$encodePolicy integer
Résultat Signer

setIgnores() public méthode

public setIgnores ( array $ignores )
$ignores array

setSort() public méthode

public setSort ( boolean $sort ) : Signer
$sort boolean
Résultat Signer

signContentWithRSA() public méthode

public signContentWithRSA ( $content, $privateKey, $alg = OPENSSL_ALGO_SHA1 )

signWithMD5() public méthode

public signWithMD5 ( $key )

signWithRSA() public méthode

public signWithRSA ( $privateKey, $alg = OPENSSL_ALGO_SHA1 )

sort() protected méthode

protected sort ( &$params )
$params

unsetKeys() protected méthode

protected unsetKeys ( &$params )
$params

verifyWithMD5() public méthode

public verifyWithMD5 ( $content, $sign, $key )

verifyWithRSA() public méthode

public verifyWithRSA ( $content, $sign, $publicKey, $alg = OPENSSL_ALGO_SHA1 )

Property Details

$encodePolicy protected_oe property

protected $encodePolicy

$ignores protected_oe property

protected $ignores

$sort protected_oe property

protected $sort