Support encrypt and decrypt.
This commit is contained in:
@@ -34,6 +34,8 @@ public:
|
||||
void setAppendCrl(bool appendCrl);
|
||||
std::string getCountryCode() const;
|
||||
void setCountryCode(const std::string &countryCode);
|
||||
long getImmediately() const;
|
||||
void setImmediately(long immediately);
|
||||
std::string getCommonName() const;
|
||||
void setCommonName(const std::string &commonName);
|
||||
std::string getSourceIp() const;
|
||||
@@ -68,6 +70,7 @@ public:
|
||||
private:
|
||||
bool appendCrl_;
|
||||
std::string countryCode_;
|
||||
long immediately_;
|
||||
std::string commonName_;
|
||||
std::string sourceIp_;
|
||||
std::string certType_;
|
||||
|
||||
@@ -30,38 +30,62 @@ class ALIBABACLOUD_CAS_EXPORT CreateWHClientCertificateRequest : public RpcServi
|
||||
public:
|
||||
CreateWHClientCertificateRequest();
|
||||
~CreateWHClientCertificateRequest();
|
||||
std::string getCountry() const;
|
||||
void setCountry(const std::string &country);
|
||||
std::string getCsr() const;
|
||||
void setCsr(const std::string &csr);
|
||||
long getImmediately() const;
|
||||
void setImmediately(long immediately);
|
||||
long getYears() const;
|
||||
void setYears(long years);
|
||||
std::string getCommonName() const;
|
||||
void setCommonName(const std::string &commonName);
|
||||
std::string getSourceIp() const;
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
std::string getSanValue() const;
|
||||
void setSanValue(const std::string &sanValue);
|
||||
std::string getState() const;
|
||||
void setState(const std::string &state);
|
||||
std::string getAlgorithm() const;
|
||||
void setAlgorithm(const std::string &algorithm);
|
||||
long getMonths() const;
|
||||
void setMonths(long months);
|
||||
long getAfterTime() const;
|
||||
void setAfterTime(long afterTime);
|
||||
std::string getLocality() const;
|
||||
void setLocality(const std::string &locality);
|
||||
long getSanType() const;
|
||||
void setSanType(long sanType);
|
||||
std::string getOrganization() const;
|
||||
void setOrganization(const std::string &organization);
|
||||
long getDays() const;
|
||||
void setDays(long days);
|
||||
long getBeforeTime() const;
|
||||
void setBeforeTime(long beforeTime);
|
||||
std::string getParentIdentifier() const;
|
||||
void setParentIdentifier(const std::string &parentIdentifier);
|
||||
std::string getOrganizationUnit() const;
|
||||
void setOrganizationUnit(const std::string &organizationUnit);
|
||||
|
||||
private:
|
||||
std::string country_;
|
||||
std::string csr_;
|
||||
long immediately_;
|
||||
long years_;
|
||||
std::string commonName_;
|
||||
std::string sourceIp_;
|
||||
std::string sanValue_;
|
||||
std::string state_;
|
||||
std::string algorithm_;
|
||||
long months_;
|
||||
long afterTime_;
|
||||
std::string locality_;
|
||||
long sanType_;
|
||||
std::string organization_;
|
||||
long days_;
|
||||
long beforeTime_;
|
||||
std::string parentIdentifier_;
|
||||
std::string organizationUnit_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Cas
|
||||
|
||||
@@ -43,6 +43,15 @@ void CreateWHCertificateWithExtensionRequest::setCountryCode(const std::string &
|
||||
setParameter(std::string("CountryCode"), countryCode);
|
||||
}
|
||||
|
||||
long CreateWHCertificateWithExtensionRequest::getImmediately() const {
|
||||
return immediately_;
|
||||
}
|
||||
|
||||
void CreateWHCertificateWithExtensionRequest::setImmediately(long immediately) {
|
||||
immediately_ = immediately;
|
||||
setParameter(std::string("Immediately"), std::to_string(immediately));
|
||||
}
|
||||
|
||||
std::string CreateWHCertificateWithExtensionRequest::getCommonName() const {
|
||||
return commonName_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ CreateWHClientCertificateRequest::CreateWHClientCertificateRequest()
|
||||
|
||||
CreateWHClientCertificateRequest::~CreateWHClientCertificateRequest() {}
|
||||
|
||||
std::string CreateWHClientCertificateRequest::getCountry() const {
|
||||
return country_;
|
||||
}
|
||||
|
||||
void CreateWHClientCertificateRequest::setCountry(const std::string &country) {
|
||||
country_ = country;
|
||||
setParameter(std::string("Country"), country);
|
||||
}
|
||||
|
||||
std::string CreateWHClientCertificateRequest::getCsr() const {
|
||||
return csr_;
|
||||
}
|
||||
@@ -34,6 +43,24 @@ void CreateWHClientCertificateRequest::setCsr(const std::string &csr) {
|
||||
setParameter(std::string("Csr"), csr);
|
||||
}
|
||||
|
||||
long CreateWHClientCertificateRequest::getImmediately() const {
|
||||
return immediately_;
|
||||
}
|
||||
|
||||
void CreateWHClientCertificateRequest::setImmediately(long immediately) {
|
||||
immediately_ = immediately;
|
||||
setParameter(std::string("Immediately"), std::to_string(immediately));
|
||||
}
|
||||
|
||||
long CreateWHClientCertificateRequest::getYears() const {
|
||||
return years_;
|
||||
}
|
||||
|
||||
void CreateWHClientCertificateRequest::setYears(long years) {
|
||||
years_ = years;
|
||||
setParameter(std::string("Years"), std::to_string(years));
|
||||
}
|
||||
|
||||
std::string CreateWHClientCertificateRequest::getCommonName() const {
|
||||
return commonName_;
|
||||
}
|
||||
@@ -61,6 +88,15 @@ void CreateWHClientCertificateRequest::setSanValue(const std::string &sanValue)
|
||||
setParameter(std::string("SanValue"), sanValue);
|
||||
}
|
||||
|
||||
std::string CreateWHClientCertificateRequest::getState() const {
|
||||
return state_;
|
||||
}
|
||||
|
||||
void CreateWHClientCertificateRequest::setState(const std::string &state) {
|
||||
state_ = state;
|
||||
setParameter(std::string("State"), state);
|
||||
}
|
||||
|
||||
std::string CreateWHClientCertificateRequest::getAlgorithm() const {
|
||||
return algorithm_;
|
||||
}
|
||||
@@ -70,6 +106,15 @@ void CreateWHClientCertificateRequest::setAlgorithm(const std::string &algorithm
|
||||
setParameter(std::string("Algorithm"), algorithm);
|
||||
}
|
||||
|
||||
long CreateWHClientCertificateRequest::getMonths() const {
|
||||
return months_;
|
||||
}
|
||||
|
||||
void CreateWHClientCertificateRequest::setMonths(long months) {
|
||||
months_ = months;
|
||||
setParameter(std::string("Months"), std::to_string(months));
|
||||
}
|
||||
|
||||
long CreateWHClientCertificateRequest::getAfterTime() const {
|
||||
return afterTime_;
|
||||
}
|
||||
@@ -79,6 +124,15 @@ void CreateWHClientCertificateRequest::setAfterTime(long afterTime) {
|
||||
setParameter(std::string("AfterTime"), std::to_string(afterTime));
|
||||
}
|
||||
|
||||
std::string CreateWHClientCertificateRequest::getLocality() const {
|
||||
return locality_;
|
||||
}
|
||||
|
||||
void CreateWHClientCertificateRequest::setLocality(const std::string &locality) {
|
||||
locality_ = locality;
|
||||
setParameter(std::string("Locality"), locality);
|
||||
}
|
||||
|
||||
long CreateWHClientCertificateRequest::getSanType() const {
|
||||
return sanType_;
|
||||
}
|
||||
@@ -88,6 +142,15 @@ void CreateWHClientCertificateRequest::setSanType(long sanType) {
|
||||
setParameter(std::string("SanType"), std::to_string(sanType));
|
||||
}
|
||||
|
||||
std::string CreateWHClientCertificateRequest::getOrganization() const {
|
||||
return organization_;
|
||||
}
|
||||
|
||||
void CreateWHClientCertificateRequest::setOrganization(const std::string &organization) {
|
||||
organization_ = organization;
|
||||
setParameter(std::string("Organization"), organization);
|
||||
}
|
||||
|
||||
long CreateWHClientCertificateRequest::getDays() const {
|
||||
return days_;
|
||||
}
|
||||
@@ -115,3 +178,12 @@ void CreateWHClientCertificateRequest::setParentIdentifier(const std::string &pa
|
||||
setParameter(std::string("ParentIdentifier"), parentIdentifier);
|
||||
}
|
||||
|
||||
std::string CreateWHClientCertificateRequest::getOrganizationUnit() const {
|
||||
return organizationUnit_;
|
||||
}
|
||||
|
||||
void CreateWHClientCertificateRequest::setOrganizationUnit(const std::string &organizationUnit) {
|
||||
organizationUnit_ = organizationUnit;
|
||||
setParameter(std::string("OrganizationUnit"), organizationUnit);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user