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

com.pryv.auth.AuthView Maven / Gradle / Ivy

package com.pryv.auth;

/**
 *
 * view displayed to enter credentials
 *
 * @author ik
 *
 */
public interface AuthView {

	/**
	 * displays the external web page where the user inputs his username and
	 * password
	 *
	 * @param loginURL
	 */
	void displayLoginView(String loginURL);

	/**
	 * callback method when auth is successful. Displays success message.
	 *
	 * @param username
	 * @param token
	 */
	void onAuthSuccess(String username, String token);

	/**
	 * callback method when auth failed.
	 *
	 * @param message
	 */
	void onAuthError(String message);

	/**
	 * callback method when auth was refused.
	 *
	 * @param reasonId
	 * @param message
	 * @param detail
	 */
	void onAuthRefused(int reasonId, String message, String detail);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy