![JAR search and dependency download from the Maven repository](/logo.png)
ee.sk.digidoc.factory.TrustServiceFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdigidoc Show documentation
Show all versions of jdigidoc Show documentation
A Java libray for manipulating Estonian digital signature container files DDOC and BDOC. Note that this library is deprecated. It is recommended to use the new DigiDoc4j library at https://github.com/open-eid/digidoc4j
The newest version!
package ee.sk.digidoc.factory;
import ee.sk.digidoc.DigiDocException;
import java.io.InputStream;
import java.security.cert.X509Certificate;
import java.util.List;
import java.util.Date;
/**
* Interface for TSL
* @author Veiko Sinivee
* @version 1.0
*/
public interface TrustServiceFactory {
/**
* initializes the implementation class
*/
public void init()
throws DigiDocException;
/**
* Finds direct CA cert for given user cert
* @param cert user cert
* @param bUseLocal use also ca certs registered in local config file
* @return CA cert or null if not found
* @deprecated use findCaForCert(X509Certificate cert, boolean bUseLocal, Date dtSigning)
*/
public X509Certificate findCaForCert(X509Certificate cert, boolean bUseLocal);
/**
* Finds direct CA cert for given user cert
* @param cert user cert
* @param bUseLocal use also ca certs registered in local config file
* @param dtSigning signing timestamp. Used to pick correct ca if many of them apply
* @return CA cert or null if not found
*/
public X509Certificate findCaForCert(X509Certificate cert, boolean bUseLocal, Date dtSigning);
/**
* Finds direct OCSP cert for given ocsp responder id
* @param cn OCSP responder-id
* @param bUseLocal use also ca certs registered in local config file
* @return OCSP cert or null if not found
*/
public X509Certificate findOcspByCN(String cn, boolean bUseLocal);
/**
* Finds OCSP url for given user cert
* @param cert user cert
* @param nUrl index of url if many exist
* @param bUseLocal use also ca certs registered in local config file
* @return CA cert or null if not found
*/
public String findOcspUrlForCert(X509Certificate cert, int nUrl, boolean bUseLocal);
/**
* Finds direct OCSP cert for given ocsp responder id
* @param cn OCSP responder-id
* @param bUseLocal use also ca certs registered in local config file
* @param serialNr serial number or NULL
* @return OCSP cert or null if not found
*/
public X509Certificate[] findOcspsByCNAndNr(String cn, boolean bUseLocal, String serialNr);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy