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

br.com.esec.icpm.libs.Certillion 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;

import java.security.Security;

import org.bouncycastle.jce.provider.BouncyCastleProvider;

import br.com.esec.icpm.libs.signature.SignatureRequest;
import br.com.esec.icpm.libs.signature.response.download.SignatureDownloader;
import br.com.esec.icpm.libs.signature.response.notify.SignatureNotifier;

public class Certillion {

	static Server server = Server.PRODUCTION;
	
	static {
		if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null) {
			Security.addProvider(new BouncyCastleProvider());
		}
	}
	
	public static Configurable config() {
		return new Configurable();
	}
	
	public static SignatureRequest signature() {
		return new SignatureRequest(server);
	}
	
	public static SignatureNotifier notifySignature() {
		return new SignatureNotifier(server);
	}

	public static SignatureDownloader downloadSignature() {
		return new SignatureDownloader(server);
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy