
com.pryv.auth.AuthView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lib Show documentation
Show all versions of lib Show documentation
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);
}