summaryrefslogtreecommitdiffstats
path: root/base/common/python/pki/system.py
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-05-04 21:30:29 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-05-04 21:30:29 +0200
commita31f24fcba558ea4efbfeb51b28f3e59e2281dfc (patch)
treee2ad880b5227f6880b125fbce4015ab92506ed57 /base/common/python/pki/system.py
parent08da75f59394292c9a84766173576001fb6e71dc (diff)
downloadpki-a31f24fcba558ea4efbfeb51b28f3e59e2281dfc.tar.gz
pki-a31f24fcba558ea4efbfeb51b28f3e59e2281dfc.tar.xz
pki-a31f24fcba558ea4efbfeb51b28f3e59e2281dfc.zip
Added createUsers() and configureSecurityDomain().
Diffstat (limited to 'base/common/python/pki/system.py')
-rw-r--r--base/common/python/pki/system.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/base/common/python/pki/system.py b/base/common/python/pki/system.py
index 46b1d4051..65ca32183 100644
--- a/base/common/python/pki/system.py
+++ b/base/common/python/pki/system.py
@@ -275,6 +275,26 @@ class SystemConfigClient(object):
headers)
return response.json()
+ def createUsers(self):
+ """
+ Contacts the server and invokes the Java configuration REST API to
+ create subsystem users.
+ """
+ headers = {'Content-type': 'application/json',
+ 'Accept': 'application/json'}
+ self.connection.post('/rest/installer/finalize', None,
+ headers)
+
+ def configureSecurityDomain(self):
+ """
+ Contacts the server and invokes the Java configuration REST API to
+ configure security domain.
+ """
+ headers = {'Content-type': 'application/json',
+ 'Accept': 'application/json'}
+ response = self.connection.post('/rest/installer/finalize', None,
+ headers)
+
def finalize(self):
"""
Contacts the server and invokes the Java configuration REST API to