diff options
| author | Endi S. Dewata <edewata@redhat.com> | 2017-02-16 06:06:37 +0100 |
|---|---|---|
| committer | Endi S. Dewata <edewata@redhat.com> | 2017-02-16 17:19:44 +0100 |
| commit | ab3737e6c8367e691c7deda33b1ff8ed9cc5c408 (patch) | |
| tree | fdcbfc5e0c75adf1752573dc5b97f07267ba9082 /base/common/src/com | |
| parent | 4cb3fc603464502d585cb54f8b5469b49dd91314 (diff) | |
| download | pki-ab3737e6c8367e691c7deda33b1ff8ed9cc5c408.tar.gz pki-ab3737e6c8367e691c7deda33b1ff8ed9cc5c408.tar.xz pki-ab3737e6c8367e691c7deda33b1ff8ed9cc5c408.zip | |
Refactored SubsystemClient.
The SubsystemClient.login() method has been modified to return
the AccountInfo obtained from AccountClient.login().
Diffstat (limited to 'base/common/src/com')
| -rw-r--r-- | base/common/src/com/netscape/certsrv/client/SubsystemClient.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/common/src/com/netscape/certsrv/client/SubsystemClient.java b/base/common/src/com/netscape/certsrv/client/SubsystemClient.java index 3d44bce41..0aa5c6c46 100644 --- a/base/common/src/com/netscape/certsrv/client/SubsystemClient.java +++ b/base/common/src/com/netscape/certsrv/client/SubsystemClient.java @@ -25,6 +25,7 @@ import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; import com.netscape.certsrv.account.AccountClient; +import com.netscape.certsrv.account.AccountInfo; /** @@ -45,8 +46,8 @@ public class SubsystemClient extends Client { /** * Log in to the subsystem. */ - public void login() { - accountClient.login(); + public AccountInfo login() { + return accountClient.login(); } public boolean exists() throws Exception { |
