Support encrypt and decrypt.
This commit is contained in:
@@ -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