接口通信加密自定义算法的EncryptionConfig实体类对象详解
源代码(V7.2)
<?php
namespace app\api\common\entity;
class EncryptionConfig
{
private $param_name_transfer_encryption=false;
private $param_value_transfer_encryption=false;
private $api_transfer_signature_time_limit=false;
private $api_transfer_signature_time_limit_maximum=300;
private $api_transfer_signature_time_limit_minimum=300;
private $api_response_encryption=false;
private $api_transfer_signature_type=0;
private $api_response_signature_type=0;
private $api_response_signature_param_string_calculation_rule=0;
private $api_data_transfer_encryption_type=0;
private $api_data_transfer_encryption_encoded_type=0;
private $config_aes_key='';
private $config_aes_iv='';
private $config_aes_pcks=0;
private $config_aes_mode=0;
private $config_rc4_key='';
private $config_base64_key='';
private $config_des_key='';
private $config_des_pcks=0;
private $config_des_mode=0;
private $config_rsa_pkcs=0;
private $config_rsa_service_public_key='';
private $config_rsa_service_private_key='';
private $config_rsa_client_public_key='';
private $config_rsa_client_private_key='';
private $config_custom_encrypt_function='';
private $config_custom_decrypt_function='';
private $json_unescaped_unicode=false;
private $api_response_data_format_type=0;
private $api_data_transfer_verify_captcha=false;
private $api_request_verify_blacklist=false;
private $api_request_forwarding_open=false;
private $api_request_forwarding_url='';
private $api_request_forwarding_response_data_takeover_open=false;
/**
* @return bool
*/
public function isParamNameTransferEncryption(): bool
{
return $this->param_name_transfer_encryption;
}
/**
* @param bool $param_name_transfer_encryption
*/
public function setParamNameTransferEncryption(bool $param_name_transfer_encryption): void
{
$this->param_name_transfer_encryption = $param_name_transfer_encryption;
}
/**
* @return bool
*/
public function isParamValueTransferEncryption(): bool
{
return $this->param_value_transfer_encryption;
}
/**
* @param bool $param_value_transfer_encryption
*/
public function setParamValueTransferEncryption(bool $param_value_transfer_encryption): void
{
$this->param_value_transfer_encryption = $param_value_transfer_encryption;
}
/**
* @return bool
*/
public function isApiTransferSignatureTimeLimit(): bool
{
return $this->api_transfer_signature_time_limit;
}
/**
* @param bool $api_transfer_signature_time_limit
*/
public function setApiTransferSignatureTimeLimit(bool $api_transfer_signature_time_limit): void
{
$this->api_transfer_signature_time_limit = $api_transfer_signature_time_limit;
}
/**
* @return int
*/
public function getApiTransferSignatureTimeLimitMaximum(): int
{
return $this->api_transfer_signature_time_limit_maximum;
}
/**
* @param int $api_transfer_signature_time_limit_maximum
*/
public function setApiTransferSignatureTimeLimitMaximum(int $api_transfer_signature_time_limit_maximum): void
{
$this->api_transfer_signature_time_limit_maximum = $api_transfer_signature_time_limit_maximum;
}
/**
* @return int
*/
public function getApiTransferSignatureTimeLimitMinimum(): int
{
return $this->api_transfer_signature_time_limit_minimum;
}
/**
* @param int $api_transfer_signature_time_limit_minimum
*/
public function setApiTransferSignatureTimeLimitMinimum(int $api_transfer_signature_time_limit_minimum): void
{
$this->api_transfer_signature_time_limit_minimum = $api_transfer_signature_time_limit_minimum;
}
/**
* @return bool
*/
public function isApiResponseEncryption(): bool
{
return $this->api_response_encryption;
}
/**
* @param bool $api_response_encryption
*/
public function setApiResponseEncryption(bool $api_response_encryption): void
{
$this->api_response_encryption = $api_response_encryption;
}
/**
* @return int
*/
public function getApiTransferSignatureType(): int
{
return $this->api_transfer_signature_type;
}
/**
* @param int $api_transfer_signature_type
*/
public function setApiTransferSignatureType(int $api_transfer_signature_type): void
{
$this->api_transfer_signature_type = $api_transfer_signature_type;
}
/**
* @return int
*/
public function getApiResponseSignatureType(): int
{
return $this->api_response_signature_type;
}
/**
* @param int $api_response_signature_type
*/
public function setApiResponseSignatureType(int $api_response_signature_type): void
{
$this->api_response_signature_type = $api_response_signature_type;
}
/**
* @return int
*/
public function getApiResponseSignatureParamStringCalculationRule(): int
{
return $this->api_response_signature_param_string_calculation_rule;
}
/**
* @param int $api_response_signature_param_string_calculation_rule
*/
public function setApiResponseSignatureParamStringCalculationRule(int $api_response_signature_param_string_calculation_rule): void
{
$this->api_response_signature_param_string_calculation_rule = $api_response_signature_param_string_calculation_rule;
}
/**
* @return int
*/
public function getApiDataTransferEncryptionType(): int
{
return $this->api_data_transfer_encryption_type;
}
/**
* @param int $api_data_transfer_encryption_type
*/
public function setApiDataTransferEncryptionType(int $api_data_transfer_encryption_type): void
{
$this->api_data_transfer_encryption_type = $api_data_transfer_encryption_type;
}
/**
* @return int
*/
public function getApiDataTransferEncryptionEncodedType(): int
{
return $this->api_data_transfer_encryption_encoded_type;
}
/**
* @param int $api_data_transfer_encryption_encoded_type
*/
public function setApiDataTransferEncryptionEncodedType(int $api_data_transfer_encryption_encoded_type): void
{
$this->api_data_transfer_encryption_encoded_type = $api_data_transfer_encryption_encoded_type;
}
/**
* @return string
*/
public function getConfigAesKey(): string
{
return $this->config_aes_key;
}
/**
* @param string $config_aes_key
*/
public function setConfigAesKey(string $config_aes_key): void
{
$this->config_aes_key = $config_aes_key;
}
/**
* @return string
*/
public function getConfigAesIv(): string
{
return $this->config_aes_iv;
}
/**
* @param string $config_aes_iv
*/
public function setConfigAesIv(string $config_aes_iv): void
{
$this->config_aes_iv = $config_aes_iv;
}
/**
* @return int
*/
public function getConfigAesPcks(): int
{
return $this->config_aes_pcks;
}
/**
* @param int $config_aes_pcks
*/
public function setConfigAesPcks(int $config_aes_pcks): void
{
$this->config_aes_pcks = $config_aes_pcks;
}
/**
* @return int
*/
public function getConfigAesMode(): int
{
return $this->config_aes_mode;
}
/**
* @param int $config_aes_mode
*/
public function setConfigAesMode(int $config_aes_mode): void
{
$this->config_aes_mode = $config_aes_mode;
}
/**
* @return string
*/
public function getConfigRc4Key(): string
{
return $this->config_rc4_key;
}
/**
* @param string $config_rc4_key
*/
public function setConfigRc4Key(string $config_rc4_key): void
{
$this->config_rc4_key = $config_rc4_key;
}
/**
* @return string
*/
public function getConfigBase64Key(): string
{
return $this->config_base64_key;
}
/**
* @param string $config_base64_key
*/
public function setConfigBase64Key(string $config_base64_key): void
{
$this->config_base64_key = $config_base64_key;
}
/**
* @return string
*/
public function getConfigDesKey(): string
{
return $this->config_des_key;
}
/**
* @param string $config_des_key
*/
public function setConfigDesKey(string $config_des_key): void
{
$this->config_des_key = $config_des_key;
}
/**
* @return int
*/
public function getConfigDesPcks(): int
{
return $this->config_des_pcks;
}
/**
* @param int $config_des_pcks
*/
public function setConfigDesPcks(int $config_des_pcks): void
{
$this->config_des_pcks = $config_des_pcks;
}
/**
* @return int
*/
public function getConfigDesMode(): int
{
return $this->config_des_mode;
}
/**
* @param int $config_des_mode
*/
public function setConfigDesMode(int $config_des_mode): void
{
$this->config_des_mode = $config_des_mode;
}
/**
* @return int
*/
public function getConfigRsaPkcs(): int
{
return $this->config_rsa_pkcs;
}
/**
* @param int $config_rsa_pkcs
*/
public function setConfigRsaPkcs(int $config_rsa_pkcs): void
{
$this->config_rsa_pkcs = $config_rsa_pkcs;
}
/**
* @return string
*/
public function getConfigRsaServicePublicKey(): string
{
return $this->config_rsa_service_public_key;
}
/**
* @param string $config_rsa_service_public_key
*/
public function setConfigRsaServicePublicKey(string $config_rsa_service_public_key): void
{
$this->config_rsa_service_public_key = $config_rsa_service_public_key;
}
/**
* @return string
*/
public function getConfigRsaServicePrivateKey(): string
{
return $this->config_rsa_service_private_key;
}
/**
* @param string $config_rsa_service_private_key
*/
public function setConfigRsaServicePrivateKey(string $config_rsa_service_private_key): void
{
$this->config_rsa_service_private_key = $config_rsa_service_private_key;
}
/**
* @return string
*/
public function getConfigRsaClientPublicKey(): string
{
return $this->config_rsa_client_public_key;
}
/**
* @param string $config_rsa_client_public_key
*/
public function setConfigRsaClientPublicKey(string $config_rsa_client_public_key): void
{
$this->config_rsa_client_public_key = $config_rsa_client_public_key;
}
/**
* @return string
*/
public function getConfigRsaClientPrivateKey(): string
{
return $this->config_rsa_client_private_key;
}
/**
* @param string $config_rsa_client_private_key
*/
public function setConfigRsaClientPrivateKey(string $config_rsa_client_private_key): void
{
$this->config_rsa_client_private_key = $config_rsa_client_private_key;
}
/**
* @return string
*/
public function getConfigCustomEncryptFunction(): string
{
return $this->config_custom_encrypt_function;
}
/**
* @param string $config_custom_encrypt_function
*/
public function setConfigCustomEncryptFunction(string $config_custom_encrypt_function): void
{
$this->config_custom_encrypt_function = $config_custom_encrypt_function;
}
/**
* @return string
*/
public function getConfigCustomDecryptFunction(): string
{
return $this->config_custom_decrypt_function;
}
/**
* @param string $config_custom_decrypt_function
*/
public function setConfigCustomDecryptFunction(string $config_custom_decrypt_function): void
{
$this->config_custom_decrypt_function = $config_custom_decrypt_function;
}
/**
* @return bool
*/
public function isJsonUnescapedUnicode(): bool
{
return $this->json_unescaped_unicode;
}
/**
* @param bool $json_unescaped_unicode
*/
public function setJsonUnescapedUnicode(bool $json_unescaped_unicode): void
{
$this->json_unescaped_unicode = $json_unescaped_unicode;
}
/**
* @return int
*/
public function getApiResponseDataFormatType(): int
{
return $this->api_response_data_format_type;
}
/**
* @param int $api_response_data_format_type
*/
public function setApiResponseDataFormatType(int $api_response_data_format_type): void
{
$this->api_response_data_format_type = $api_response_data_format_type;
}
/**
* @return bool
*/
public function isApiDataTransferVerifyCaptcha(): bool
{
return $this->api_data_transfer_verify_captcha;
}
/**
* @param bool $api_data_transfer_verify_captcha
*/
public function setApiDataTransferVerifyCaptcha(bool $api_data_transfer_verify_captcha): void
{
$this->api_data_transfer_verify_captcha = $api_data_transfer_verify_captcha;
}
/**
* @return bool
*/
public function isApiRequestVerifyBlacklist(): bool
{
return $this->api_request_verify_blacklist;
}
/**
* @param bool $api_request_verify_blacklist
*/
public function setApiRequestVerifyBlacklist(bool $api_request_verify_blacklist): void
{
$this->api_request_verify_blacklist = $api_request_verify_blacklist;
}
/**
* @return bool
*/
public function isApiRequestForwardingOpen(): bool
{
return $this->api_request_forwarding_open;
}
/**
* @param bool $api_request_forwarding_open
*/
public function setApiRequestForwardingOpen(bool $api_request_forwarding_open): void
{
$this->api_request_forwarding_open = $api_request_forwarding_open;
}
/**
* @return string
*/
public function getApiRequestForwardingUrl(): string
{
return $this->api_request_forwarding_url;
}
/**
* @param string $api_request_forwarding_url
*/
public function setApiRequestForwardingUrl(string $api_request_forwarding_url): void
{
$this->api_request_forwarding_url = $api_request_forwarding_url;
}
/**
* @return bool
*/
public function isApiRequestForwardingResponseDataTakeoverOpen(): bool
{
return $this->api_request_forwarding_response_data_takeover_open;
}
/**
* @param bool $api_request_forwarding_response_data_takeover_open
*/
public function setApiRequestForwardingResponseDataTakeoverOpen(bool $api_request_forwarding_response_data_takeover_open): void
{
$this->api_request_forwarding_response_data_takeover_open = $api_request_forwarding_response_data_takeover_open;
}
}
最后修改时间: 1 年前