public final class SymwsClientConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SymwsClientConfig.Builder
A mutable builder to facilitate construction of SymwsClientConfig objects
|
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_HEADER_NAME |
static String |
SESSION_HEADER_NAME |
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
String |
getClientId() |
URI |
getRootUri() |
String |
getSessionToken() |
boolean |
hasSession()
Indicates whether this instance has a corresponding session
TODO: Should this check whether the session is still alive?
|
SymwsClientConfig |
newSession(String sessionToken)
Returns a new SymwsClientConfig with the provided session.
|
SymwsClientConfig |
newSession(String userId,
String password)
Uses the LoginUserClient to retrieve a new session, and returns a new SymwsClientConfig with that session.
|
String |
toString() |
public static final String CLIENT_HEADER_NAME
public static final String SESSION_HEADER_NAME
public SymwsClientConfig newSession(String userId, String password) throws SymwsClientException
userId
- the userId of the user to be authenticatedpassword
- the PIN/password of the user to be authenticatedSymwsClientException
- if an error occurs while creating the new sessionpublic SymwsClientConfig newSession(String sessionToken)
sessionToken
- the session token to attach to the new instancepublic boolean hasSession()
public URI getRootUri()
public String getClientId()
public String getSessionToken()
Copyright © 2015. All rights reserved.