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

me.figo.FigoPinException Maven / Gradle / Ivy

Go to download

This SDK eases the development of Java applications and web services consuming the figo connect API. Figo connect allows developers simple access to users bank data on a trustworthy basis. Users can grant your application access to certain parts of their bank accounts and you can access them without worrying about the inner workings of online banking.

There is a newer version: 4.0.16
Show newest version
package me.figo;

import me.figo.internal.SetupAccountRequest;
import me.figo.internal.TaskStatusResponse;
import me.figo.internal.TaskTokenResponse;

public class FigoPinException extends Exception {

	private static final long serialVersionUID = -3142403349349283593L;
	private String bankCode;
	private String countryCode;
	private String loginName;
	private String pin;
	private String taskToken;
	
	public FigoPinException(SetupAccountRequest request)	{
		this.bankCode = request.getBankCode();
		this.countryCode = request.getCountry();
		this.loginName = request.getCredentials().get(0);
		this.pin = request.getCredentials().get(1);
	}
	
	public FigoPinException(String bankCode, String countryCode, String loginName, String pin, TaskTokenResponse taskToken)	{
		this.bankCode = bankCode;
		this.countryCode = countryCode;
		this.loginName = loginName;
		this.pin = pin;
		this.taskToken = taskToken.getTaskToken();
	}
	
	public String getBankCode() {
		return bankCode;
	}
	public String getCountryCode() {
		return countryCode;
	}
	public String getLoginName() {
		return loginName;
	}
	public String getPin() {
		return pin;
	}
	public String getTaskToken()	{
		return this.taskToken;
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy