diff options
author | Endi S. Dewata <edewata@redhat.com> | 2016-05-05 08:01:52 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2016-05-05 08:01:52 +0200 |
commit | 2be9c6eaeb178325e9564d6a47e8078b4d2f0e1f (patch) | |
tree | 93cb3b1a13953449e339efd279c796a0ad827eb4 /base/common/python/pki/system.py | |
parent | 61ec70e0896360d80a85f7864c16edbf44787fb9 (diff) | |
download | pki-2be9c6eaeb178325e9564d6a47e8078b4d2f0e1f.tar.gz pki-2be9c6eaeb178325e9564d6a47e8078b4d2f0e1f.tar.xz pki-2be9c6eaeb178325e9564d6a47e8078b4d2f0e1f.zip |
Added createCertificates().
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() |