Alternc
latest
Alternc logiel libre pour l'hébergement
|
SSL Api of AlternC, used by alternc-api package. More...
Public Member Functions | |
__construct ($service) | |
getList ($options) | |
API Method from legacy class get_list() More... | |
newCsr ($options) | |
API Method from legacy class new_csr() More... | |
getCertificate ($options) | |
API Method from legacy class get_certificate() More... | |
share ($options) | |
API Method from legacy class share() More... | |
importCert ($options) | |
API Method from legacy class import_cert() More... | |
finalize ($options) | |
API Method from legacy class finalize() More... | |
aliasAdd ($options) | |
API Method from legacy class alias_add() More... | |
aliasDel ($options) | |
API Method from legacy class alias_del() More... | |
Public Attributes | |
const | ERR_INVALID_ARGUMENT = 111201 |
const | ERR_ALTERNC_FUNCTION = 111202 |
const | ERR_NOT_FOUND = 111203 |
Protected Member Functions | |
alterncLegacyErrorManager () | |
return a proper Alternc_Api_Response from an error class and error string from AlternC legacy class More... | |
offsetAndCount ($options, $max) | |
ensure that offset & count are set properly from $options. More... | |
Protected Attributes | |
$ssl | |
$admin | |
$cuid | |
$isAdmin | |
$db | |
Alternc_Api_Object_Ssl::__construct | ( | $service | ) |
Reimplemented from Alternc_Api_Legacyobject.
Definition at line 10 of file Ssl.php.
References $ssl.
Alternc_Api_Object_Ssl::aliasAdd | ( | $options | ) |
API Method from legacy class alias_add()
$options | a hash with parameters transmitted to legacy call add the alias 'name' with the content value 'value' in the global apache configuration |
Definition at line 152 of file Ssl.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Ssl::aliasDel | ( | $options | ) |
API Method from legacy class alias_del()
$options | a hash with parameters transmitted to legacy call del the alias 'name' in the global apache configuration |
Definition at line 173 of file Ssl.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
|
protectedinherited |
return a proper Alternc_Api_Response from an error class and error string from AlternC legacy class
Definition at line 38 of file Legacyobject.php.
References $err.
Referenced by Alternc_Api_Object_Mail\account(), Alternc_Api_Object_Account\add(), Alternc_Api_Object_Domain\add(), Alternc_Api_Object_Ftp\add(), Alternc_Api_Object_Mysql\add(), aliasAdd(), aliasDel(), Alternc_Api_Object_Policy\check(), Alternc_Api_Object_Mail\create(), Alternc_Api_Object_Account\del(), Alternc_Api_Object_Domain\del(), Alternc_Api_Object_Ftp\del(), Alternc_Api_Object_Mysql\del(), Alternc_Api_Object_Mail\delete(), Alternc_Api_Object_Mail\disable(), Alternc_Api_Object_Mail\enable(), finalize(), Alternc_Api_Object_Account\find(), Alternc_Api_Object_Ftp\find(), Alternc_Api_Object_Mysql\find(), Alternc_Api_Object_Policy\find(), Alternc_Api_Object_Domain\get(), Alternc_Api_Object_Mail\get(), Alternc_Api_Object_Subdomain\get(), Alternc_Api_Object_Mail\getAll(), getCertificate(), importCert(), Alternc_Api_Object_Mail\isAvailable(), Alternc_Api_Object_Ftp\isFtp(), Alternc_Api_Object_Mail\listDomains(), Alternc_Api_Object_Account\lock(), Alternc_Api_Object_Mysql\lock(), newCsr(), Alternc_Api_Object_Mail\passwd(), Alternc_Api_Object_Subdomain\set(), Alternc_Api_Object_Account\setAdmin(), Alternc_Api_Object_Mysql\setAdmin(), share(), Alternc_Api_Object_Mail\undelete(), Alternc_Api_Object_Account\unlock(), Alternc_Api_Object_Mysql\unlock(), Alternc_Api_Object_Account\unsetAdmin(), Alternc_Api_Object_Mysql\unsetAdmin(), Alternc_Api_Object_Account\update(), Alternc_Api_Object_Domain\update(), Alternc_Api_Object_Ftp\update(), Alternc_Api_Object_Mail\update(), Alternc_Api_Object_Mysql\update(), and Alternc_Api_Object_Policy\update().
Alternc_Api_Object_Ssl::finalize | ( | $options | ) |
API Method from legacy class finalize()
$options | a hash with parameters transmitted to legacy call second part of the new_csr() call, finalize a certificate creation id = ID of the certificate to finalize in the table. crt = Certificate data chain = Chained Certificate date (not mandatory) |
Definition at line 124 of file Ssl.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Ssl::getCertificate | ( | $options | ) |
API Method from legacy class get_certificate()
$options | a hash with parameters transmitted to legacy call id = the ID of the certificate in the certifiate table to get |
Definition at line 55 of file Ssl.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Ssl::getList | ( | $options | ) |
API Method from legacy class get_list()
$options | a hash with parameters transmitted to legacy call filter = the kind of ssl certificates to show or not show |
Definition at line 22 of file Ssl.php.
Alternc_Api_Object_Ssl::importCert | ( | $options | ) |
API Method from legacy class import_cert()
$options | a hash with parameters transmitted to legacy call key, crt, chain = key and crt (both mandatory) and chain (not mandatory) to import |
Definition at line 93 of file Ssl.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
Alternc_Api_Object_Ssl::newCsr | ( | $options | ) |
API Method from legacy class new_csr()
$options | a hash with parameters transmitted to legacy call fqdn = the DNS name to create a CSR to |
Definition at line 38 of file Ssl.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
|
protectedinherited |
ensure that offset & count are set properly from $options.
Definition at line 45 of file Legacyobject.php.
Referenced by Alternc_Api_Object_Account\find(), Alternc_Api_Object_Domain\find(), Alternc_Api_Object_Ftp\find(), and Alternc_Api_Object_Mysql\find().
Alternc_Api_Object_Ssl::share | ( | $options | ) |
API Method from legacy class share()
$options | a hash with parameters transmitted to legacy call id = the ID of the certificate to share or unshare action = boolean telling to share(true) or unshare(false) this certificate |
Definition at line 73 of file Ssl.php.
References Alternc_Api_Legacyobject\alterncLegacyErrorManager().
|
protectedinherited |
Definition at line 11 of file Legacyobject.php.
Referenced by Alternc_Api_Legacyobject\__construct().
|
protectedinherited |
Definition at line 12 of file Legacyobject.php.
Referenced by Alternc_Api_Legacyobject\__construct(), Alternc_Api_Object_Domain\find(), Alternc_Api_Object_Domain\get(), Alternc_Api_Object_Subdomain\get(), Alternc_Api_Object_Mail\listDomains(), Alternc_Api_Object_Mail\login(), and Alternc_Api_Object_Subdomain\set().
|
protectedinherited |
Definition at line 14 of file Legacyobject.php.
|
protectedinherited |
Definition at line 13 of file Legacyobject.php.
Referenced by Alternc_Api_Legacyobject\__construct().
|
protected |
Definition at line 8 of file Ssl.php.
Referenced by __construct().
|
inherited |
Definition at line 17 of file Legacyobject.php.
|
inherited |
Definition at line 16 of file Legacyobject.php.
|
inherited |
Definition at line 18 of file Legacyobject.php.