Package com.netscape.certsrv.client
Class SubsystemClient
- java.lang.Object
-
- com.netscape.certsrv.client.Client
-
- com.netscape.certsrv.client.SubsystemClient
-
-
Field Summary
Fields Modifier and Type Field Description AccountClientaccountClientstatic java.lang.StringAUTH_FAILUREstatic java.lang.StringFAILUREstatic org.slf4j.Loggerloggerstatic java.lang.StringSUCCESS
-
Constructor Summary
Constructors Constructor Description SubsystemClient(PKIClient client, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()Accountlogin()Log in to the subsystem.voidlogout()Log out from the subsystem.RangerequestRange(java.lang.String type, java.lang.String sessionID)-
Methods inherited from class com.netscape.certsrv.client.Client
addClient, createProxy, get, get, get, get, getClient, getName, getSubsystem, post, post, post, post, removeClient
-
-
-
-
Field Detail
-
logger
public static final org.slf4j.Logger logger
-
SUCCESS
public static java.lang.String SUCCESS
-
FAILURE
public static java.lang.String FAILURE
-
AUTH_FAILURE
public static java.lang.String AUTH_FAILURE
-
accountClient
public AccountClient accountClient
-
-
Constructor Detail
-
SubsystemClient
public SubsystemClient(PKIClient client, java.lang.String name) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
login
public Account login() throws java.lang.Exception
Log in to the subsystem.- Throws:
java.lang.Exception
-
exists
public boolean exists() throws java.lang.Exception- Throws:
java.lang.Exception
-
requestRange
public Range requestRange(java.lang.String type, java.lang.String sessionID) throws java.lang.Exception
- Throws:
java.lang.Exception
-
logout
public void logout() throws java.lang.ExceptionLog out from the subsystem.- Throws:
java.lang.Exception
-
-