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 commons Show documentation
Show all versions of commons Show documentation
Common library shared among Java and Android.
The newest version!
package com.pryv.auth;
/**
* View displayed to enter credentials
*/
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