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

com.pryv.auth.AuthController 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;

/**
 *
 * callback used by poller after login successful
 *
 * @author ik
 *
 */
public interface AuthController {

  /**
   * begin login sequence
   */
  void signIn();

  /**
   * login successfull callback, returns username and auth token
   *
   * @param username
   * @param token
   */
  void onSuccess(String username, String token);

  /**
   * auth error
   *
   * @param message
   */
  void onError(String message);

  /**
   * auth refused
   *
   * @param reasonId
   * @param message
   * @param detail
   */
  void onRefused(int reasonId, String message, String detail);

  /**
   * display web view
   *
   * @param the
   *          url of the login page
   */
  void displayLoginView(String url);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy