public final class SessionAuthenticator extends BaseAuthenticator
Constructor and Description |
---|
SessionAuthenticator(String sessionID)
Initializes with the Sync Gateway session ID and uses the default cookie name.
|
SessionAuthenticator(String sessionID,
String cookieName)
Initializes with the session ID and the cookie name.
|
Modifier and Type | Method and Description |
---|---|
String |
getCookieName()
Return session cookie name that the session ID value will be set to when communicating
the Sync Gateway.
|
String |
getSessionID()
Return session ID of the session created by a Sync Gateway.
|
public SessionAuthenticator(@NonNull String sessionID)
sessionID
- Sync Gateway session IDpublic SessionAuthenticator(@NonNull String sessionID, @Nullable String cookieName)
sessionID
- Sync Gateway session IDcookieName
- The cookie name