All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sdmlib.modelcouch.authentication.Authenticator Maven / Gradle / Ivy

Go to download

SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.

There is a newer version: 2.3.2341
Show newest version
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