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

br.com.esec.icpm.libs.signature.response.handler.SignatureAsynchHandler Maven / Gradle / Ivy

Go to download

This library is used to make integration with Certillion server, so our Clients can easily ask for signatures or generate certificates.

There is a newer version: 1.2.0
Show newest version
package br.com.esec.icpm.libs.signature.response.handler;

import java.util.concurrent.TimeoutException;

import br.com.esec.icpm.server.ws.ICPMException;

public interface SignatureAsynchHandler extends SignatureHandler {

	long DEFAULT_TIMEOUT = 60; // 60s
	
	SignatureAsynchHandler waitTo() throws ICPMException, InterruptedException, TimeoutException;

	SignatureAsynchHandler waitTo(long timeout) throws ICPMException, InterruptedException, TimeoutException;
	
	SignatureAsynchHandler addListener(Listener listener) throws ICPMException, InterruptedException, TimeoutException;

	public interface Listener {
		void onSuccess(SignatureAsynchHandler handler);
		void onFailed(Throwable e);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy