first commit
This commit is contained in:
93
lib/Auth/YopRsaCredentials.php
Normal file
93
lib/Auth/YopRsaCredentials.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Auth;
|
||||
|
||||
class YopRsaCredentials
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $appKey;
|
||||
|
||||
/**
|
||||
* @var resource
|
||||
*/
|
||||
private $privateKey;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $encryptKey;
|
||||
|
||||
/**
|
||||
* YopRsaCredentials constructor.
|
||||
* @param string $appKey
|
||||
* @param resource $privateKey
|
||||
* @param string $encryptKey
|
||||
*/
|
||||
public function __construct($appKey, $privateKey, $encryptKey)
|
||||
{
|
||||
$this->appKey = $appKey;
|
||||
$this->privateKey = $privateKey;
|
||||
$this->encryptKey = $encryptKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAppKey()
|
||||
{
|
||||
return $this->appKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $appKey
|
||||
* @return YopRsaCredentials
|
||||
*/
|
||||
public function setAppKey($appKey)
|
||||
{
|
||||
$this->appKey = $appKey;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return resource
|
||||
*/
|
||||
public function getPrivateKey()
|
||||
{
|
||||
return $this->privateKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param resource $privateKey
|
||||
* @return YopRsaCredentials
|
||||
*/
|
||||
public function setPrivateKey($privateKey)
|
||||
{
|
||||
$this->privateKey = $privateKey;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEncryptKey()
|
||||
{
|
||||
return $this->encryptKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $encryptKey
|
||||
* @return YopRsaCredentials
|
||||
*/
|
||||
public function setEncryptKey($encryptKey)
|
||||
{
|
||||
$this->encryptKey = $encryptKey;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user