org.sdmlib.modelcouch.authentication.Authenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SDMLib Show documentation
Show all versions of SDMLib Show documentation
SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.
package org.sdmlib.modelcouch.authentication;
import java.net.HttpURLConnection;
import org.sdmlib.modelcouch.CouchDBAdapter;
import org.sdmlib.modelcouch.ModelCouch;
public interface Authenticator {
/**
* Mainly to Store Username and Password, but also to get cookie or so
*
* @param username The User
* @param password The Password
* @param couchDBAdapter The Database
* @return result success if login
*/
public boolean login(String username, String password, CouchDBAdapter couchDBAdapter);
/**
* Called in every request
*
* @param connection The Conncetion
*/
public void authenticate(HttpURLConnection connection);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy