diff options
Diffstat (limited to 'base/common/python/pki/system.py')
-rw-r--r-- | base/common/python/pki/system.py | 45 |
1 files changed, 38 insertions, 7 deletions
diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py index 1151c78fa..7607578df 100644 --- a/base/common/python/pki/system.py +++ b/base/common/python/pki/system.py @@ -271,9 +271,28 @@ class SystemConfigClient(object): """ headers = {'Content-type': 'application/json', 'Accept': 'application/json'} - response = self.connection.post('/rest/installer/configure', data, - headers) - return response.json() + self.connection.post('/rest/installer/configure', data, + headers) + + def createCertificates(self): + """ + Contacts the server and invokes the Java configuration REST API to + create certificates. + """ + headers = {'Content-type': 'application/json', + 'Accept': 'application/json'} + self.connection.post('/rest/installer/createCertificates', None, + headers) + + def backupKeys(self): + """ + Contacts the server and invokes the Java configuration REST API to + backup keys. + """ + headers = {'Content-type': 'application/json', + 'Accept': 'application/json'} + self.connection.post('/rest/installer/backupKeys', None, + headers) def createUsers(self): """ @@ -282,7 +301,7 @@ class SystemConfigClient(object): """ headers = {'Content-type': 'application/json', 'Accept': 'application/json'} - self.connection.post('/rest/installer/finalize', None, + self.connection.post('/rest/installer/createUsers', None, headers) def configureSecurityDomain(self): @@ -292,10 +311,10 @@ class SystemConfigClient(object): """ headers = {'Content-type': 'application/json', 'Accept': 'application/json'} - self.connection.post('/rest/installer/finalize', None, + self.connection.post('/rest/installer/configureSecurityDomain', None, headers) - def finalize(self): + def finalizeConfiguration(self): """ Contacts the server and invokes the Java configuration REST API to finalize subsystem configuration. @@ -304,7 +323,19 @@ class SystemConfigClient(object): """ headers = {'Content-type': 'application/json', 'Accept': 'application/json'} - response = self.connection.post('/rest/installer/finalize', None, + self.connection.post('/rest/installer/finalizeConfiguration', None, + headers) + + def getConfigurationResult(self): + """ + Contacts the server and invokes the Java configuration REST API to + get configuration result. + + :return: ConfigurationResponse -- response from configuration servlet. + """ + headers = {'Content-type': 'application/json', + 'Accept': 'application/json'} + response = self.connection.post('/rest/installer/result', None, headers) return response.json() |