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

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

Go to download

Java and Android library to authorize, authenticate and access Pryv users data as defined in the Pryv API.

The newest version!
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 displayLoginVew(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