PHP Class Omnipay\Alipay\Common\Signer

Mostra file Open project: lokielse/omnipay-alipay Class Usage Examples

Protected Properties

Property Type Description
$encodePolicy
$ignores
$sort

Public Methods

Method 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 )

Protected Methods

Method Description
sort ( &$params )
unsetKeys ( &$params )

Private Methods

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

Method Details

__construct() public method

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

convertKey() public method

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

format() public method

Convert key to standard format
public format ( $key, $type ) : string
$key
$type
return string

getContentToSign() public method

public getContentToSign ( )

getIgnores() public method

public getIgnores ( ) : array
return array

getParamsToSign() public method

public getParamsToSign ( ) : mixed
return mixed

setEncodePolicy() public method

public setEncodePolicy ( integer $encodePolicy ) : Signer
$encodePolicy integer
return Signer

setIgnores() public method

public setIgnores ( array $ignores )
$ignores array

setSort() public method

public setSort ( boolean $sort ) : Signer
$sort boolean
return Signer

signContentWithRSA() public method

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

signWithMD5() public method

public signWithMD5 ( $key )

signWithRSA() public method

public signWithRSA ( $privateKey, $alg = OPENSSL_ALGO_SHA1 )

sort() protected method

protected sort ( &$params )
$params

unsetKeys() protected method

protected unsetKeys ( &$params )
$params

verifyWithMD5() public method

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

verifyWithRSA() public method

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