// Path: src/main/java/ink/abb/pogo/api/exceptions/LoginFailedException.java
// public class LoginFailedException extends Exception {
// 	public LoginFailedException() {
// 		super();
// 	}
// 
// 	public LoginFailedException(String reason) {
// 		super(reason);
// 	}
// 
// 	public LoginFailedException(Throwable exception) {
// 		super(exception);
// 	}
// 
// 	public LoginFailedException(String reason, Throwable exception) {
// 		super(reason, exception);
// 	}
// }
// 
// Path: src/main/java/ink/abb/pogo/api/exceptions/RemoteServerException.java
// public class RemoteServerException extends Exception {
// 	public RemoteServerException() {
// 		super();
// 	}
// 
// 	public RemoteServerException(String reason) {
// 		super(reason);
// 	}
// 
// 	public RemoteServerException(Throwable exception) {
// 		super(exception);
// 	}
// 
// 	public RemoteServerException(String reason, Throwable exception) {
// 		super(reason, exception);
// 	}
// }


import POGOProtos.Networking.Envelopes.RequestEnvelopeOuterClass.RequestEnvelope.AuthInfo;
import ink.abb.pogo.api.exceptions.LoginFailedException;
import ink.abb.pogo.api.exceptions.RemoteServerException;
import java.util.concurrent.TimeUnit;
/*
 *     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 ink.abb.pogo.api.auth;



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

    public static final long REFRESH_TOKEN_BUFFER_TIME = TimeUnit.MINUTES.toMillis(5);

// Path: src/main/java/ink/abb/pogo/api/exceptions/LoginFailedException.java
// public class LoginFailedException extends Exception {
// 	public LoginFailedException() {
// 		super();
// 	}
// 
// 	public LoginFailedException(String reason) {
// 		super(reason);
// 	}
// 
// 	public LoginFailedException(Throwable exception) {
// 		super(exception);
// 	}
// 
// 	public LoginFailedException(String reason, Throwable exception) {
// 		super(reason, exception);
// 	}
// }
// 
// Path: src/main/java/ink/abb/pogo/api/exceptions/RemoteServerException.java
// public class RemoteServerException extends Exception {
// 	public RemoteServerException() {
// 		super();
// 	}
// 
// 	public RemoteServerException(String reason) {
// 		super(reason);
// 	}
// 
// 	public RemoteServerException(Throwable exception) {
// 		super(exception);
// 	}
// 
// 	public RemoteServerException(String reason, Throwable exception) {
// 		super(reason, exception);
// 	}
// }


// Path: src/main/java/ink/abb/pogo/api/auth/CredentialProvider.java
import POGOProtos.Networking.Envelopes.RequestEnvelopeOuterClass.RequestEnvelope.AuthInfo;
import ink.abb.pogo.api.exceptions.LoginFailedException;
import ink.abb.pogo.api.exceptions.RemoteServerException;
import java.util.concurrent.TimeUnit;

/*
 *     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 ink.abb.pogo.api.auth;



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

    public static final long REFRESH_TOKEN_BUFFER_TIME = TimeUnit.MINUTES.toMillis(5);

    public abstract String getTokenId() throws LoginFailedException, RemoteServerException;