// Path: library/src/main/java/com/pokegoapi/exceptions/request/InvalidCredentialsException.java
// public class InvalidCredentialsException extends RequestFailedException {
// 	public InvalidCredentialsException() {
// 		super();
// 	}
// 
// 	public InvalidCredentialsException(String reason) {
// 		super(reason);
// 	}
// 
// 	public InvalidCredentialsException(Throwable exception) {
// 		super(exception);
// 	}
// 
// 	public InvalidCredentialsException(String reason, Throwable exception) {
// 		super(reason, exception);
// 	}
// }


import POGOProtos.Networking.Envelopes.RequestEnvelopeOuterClass.RequestEnvelope.AuthInfo;
import com.pokegoapi.exceptions.request.InvalidCredentialsException;
import com.pokegoapi.exceptions.request.LoginFailedException;
/*
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.pokegoapi.auth;


/**
 * Any Credential Provider can extend this.
 */
public abstract class CredentialProvider {

	public abstract String getTokenId(boolean refresh) throws LoginFailedException, InvalidCredentialsException;

	public abstract AuthInfo getAuthInfo(boolean refresh) throws LoginFailedException, InvalidCredentialsException;

	public abstract boolean isTokenIdInvalid();

// Path: library/src/main/java/com/pokegoapi/exceptions/request/InvalidCredentialsException.java
// public class InvalidCredentialsException extends RequestFailedException {
// 	public InvalidCredentialsException() {
// 		super();
// 	}
// 
// 	public InvalidCredentialsException(String reason) {
// 		super(reason);
// 	}
// 
// 	public InvalidCredentialsException(Throwable exception) {
// 		super(exception);
// 	}
// 
// 	public InvalidCredentialsException(String reason, Throwable exception) {
// 		super(reason, exception);
// 	}
// }


// Path: library/src/main/java/com/pokegoapi/auth/CredentialProvider.java
import POGOProtos.Networking.Envelopes.RequestEnvelopeOuterClass.RequestEnvelope.AuthInfo;
import com.pokegoapi.exceptions.request.InvalidCredentialsException;
import com.pokegoapi.exceptions.request.LoginFailedException;

/*
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 *
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 *
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.pokegoapi.auth;


/**
 * Any Credential Provider can extend this.
 */
public abstract class CredentialProvider {

	public abstract String getTokenId(boolean refresh) throws LoginFailedException, InvalidCredentialsException;

	public abstract AuthInfo getAuthInfo(boolean refresh) throws LoginFailedException, InvalidCredentialsException;

	public abstract boolean isTokenIdInvalid();

	public abstract void reset();