public class CouchDbAuthenticate extends Object
| Constructor and Description |
|---|
CouchDbAuthenticate(String url,
String username,
String password)
Build a new Authentication with 10 minutes to expire after authenticate.
|
| Modifier and Type | Method and Description |
|---|---|
String |
authenticate()
Retrieve the cookie session for user authenticated
|
String |
getCookieSession() |
boolean |
isExpired() |
void |
keepAlive() |
public CouchDbAuthenticate(String url, String username, String password)
url - Uniform Resource Locator pointing to CouchDb instanceusername - couchDb user namepassword - couchDb passwordpublic String authenticate()
public String getCookieSession()
public boolean isExpired()
public void keepAlive()
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.