Class ValidationServiceClient
java.lang.Object
ch.admin.suis.client.core.service.ValidationServiceClient
- All Implemented Interfaces:
IValidationServiceClient
Deprecated.
use ValidationServiceClientBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionValidationServiceClient(ServiceConfig serviceConfig) Deprecated.ValidationServiceClient(String serviceUrl) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionMandator[]getAllMandators(Locale locale) Deprecated.validateMultipleRequests(UserRequest request, boolean pdfReport) Deprecated.Same asIValidationServiceClient.validateMultipleRequests(UserRequest, boolean, boolean)with thedoLogsparameter set tofalse.validateMultipleRequests(UserRequest request, boolean pdfReport, boolean doLogs) Deprecated.Validates a list of signature entries, each in its own request to the validation service.validateOneRequest(List<FileRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName) Deprecated.Same asIValidationServiceClient.validateOneRequest(List, boolean, String, String, String, String, boolean, boolean)with thedoLogsandprocessUnsignedFilesparameters set tofalse.validateOneRequest(List<FileRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs) Deprecated.Same asIValidationServiceClient.validateOneRequest(List, boolean, String, String, String, String, boolean, boolean)with theprocessUnsignedFilesparameter set tofalse.validateOneRequest(List<FileRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs, boolean processUnsignedFiles) Deprecated.Validates a list of files in a single request to the validation service.validateOneRequestS(List<StreamRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName) Deprecated.Same asIValidationServiceClient.validateOneRequest(List, boolean, String, String, String, String, boolean, boolean)with thedoLogsandprocessUnsignedFilesparameters set tofalse.validateOneRequestS(List<StreamRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs) Deprecated.Same asIValidationServiceClient.validateOneRequest(List, boolean, String, String, String, String, boolean, boolean)with theprocessUnsignedFilesparameter set tofalse.validateOneRequestS(List<StreamRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs, boolean processUnsignedFiles) Deprecated.Validates a list of input streams in a single request to the validation service.validateOneRequestZip(List<FileRequest> filesToValidate, String userOrganization, String userName, String language, String zipReportName, boolean doLogs, boolean processUnsignedFiles) Deprecated.Validates a list of files in a single request to the validation service.validateOneSignature(byte[] fileToValidate, String client, boolean pdfReport, String sigName, String docName, String userOrganization, String userName, String language, String pdfReportName) Deprecated.Same asIValidationServiceClient.validateOneSignature(byte[], String, boolean, String, String, String, String, String, String, boolean)with thedoLogsparameter set tofalse.validateOneSignature(byte[] fileToValidate, String client, boolean pdfReport, String sigName, String docName, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs) Deprecated.Validates a single signature entry in a file.validatePkcs7(org.bouncycastle.cms.CMSSignedData pkcs7, byte[] plainHash, String client) Deprecated.validatePkcs7(org.bouncycastle.cms.CMSSignedData pkcs7, byte[] plainHash, String client, boolean doLogs) Deprecated.
-
Constructor Details
-
ValidationServiceClient
Deprecated. -
ValidationServiceClient
Deprecated.
-
-
Method Details
-
getAllMandators
Deprecated.- Specified by:
getAllMandatorsin interfaceIValidationServiceClient
-
validateMultipleRequests
public List<ValidationResponse> validateMultipleRequests(UserRequest request, boolean pdfReport) throws NoSuchAlgorithmException, IOException Deprecated.Description copied from interface:IValidationServiceClientSame asIValidationServiceClient.validateMultipleRequests(UserRequest, boolean, boolean)with thedoLogsparameter set tofalse.- Specified by:
validateMultipleRequestsin interfaceIValidationServiceClient- Parameters:
request- theUserRequestdata structure containing the signature entries to validatepdfReport- a flag specifying whether the validation service should generate and return a report in PDF format- Returns:
- a list of
ValidationResponsedata structures, one for each signature entry given - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException- if the file given in therequestparameter cannot be read
-
validateMultipleRequests
public List<ValidationResponse> validateMultipleRequests(UserRequest request, boolean pdfReport, boolean doLogs) throws NoSuchAlgorithmException, IOException Deprecated.Description copied from interface:IValidationServiceClientValidates a list of signature entries, each in its own request to the validation service. The signature entries to validate are contained in the givenUserRequestdata structure.- Specified by:
validateMultipleRequestsin interfaceIValidationServiceClient- Parameters:
request- the UserRequest data structure containing the signature entries to validatepdfReport- a flag specifying whether the validation service should generate and return a report in PDF formatdoLogs- a flag specifying whether the call should write details about the service input and results to the log- Returns:
- a list of
ValidationResponsedata structures, one for each signature entry given - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException- if the file given in therequestparameter cannot be read
-
validateOneRequest
public ValidationResponse validateOneRequest(List<FileRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName) throws NoSuchAlgorithmException, IOException, IllegalArgumentException Deprecated.Description copied from interface:IValidationServiceClientSame asIValidationServiceClient.validateOneRequest(List, boolean, String, String, String, String, boolean, boolean)with thedoLogsandprocessUnsignedFilesparameters set tofalse.- Specified by:
validateOneRequestin interfaceIValidationServiceClient- Parameters:
filesToValidate- the list of files to validatepdfReport- a flag specifying whether the validation service should generate and return a report in PDF formatuserOrganization- theuserOrganizationproperty to pass to the validation serviceuserName- theuserOrganizationproperty to pass to the validation servicelanguage- thelanguageproperty to pass to the validation servicepdfReportName- thepdfReportNameproperty that should be echoed by the validation service- Returns:
- the
ValidationResponsedata structure created by the validation service - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException- if one of the files given in thefilesToValidateparameter cannot be readIllegalArgumentException- if none of the files given in thefilesToValidateparameter contains a signature
-
validateOneRequest
public ValidationResponse validateOneRequest(List<FileRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs) throws NoSuchAlgorithmException, IOException, IllegalArgumentException Deprecated.Description copied from interface:IValidationServiceClientSame asIValidationServiceClient.validateOneRequest(List, boolean, String, String, String, String, boolean, boolean)with theprocessUnsignedFilesparameter set tofalse.- Specified by:
validateOneRequestin interfaceIValidationServiceClient- Parameters:
filesToValidate- the list of files to validatepdfReport- a flag specifying whether the validation service should generate and return a report in PDF formatuserOrganization- theuserOrganizationproperty to pass to the validation serviceuserName- theuserOrganizationproperty to pass to the validation servicelanguage- thelanguageproperty to pass to the validation servicepdfReportName- thepdfReportNameproperty that should be echoed by the validation servicedoLogs- a flag specifying whether the call should write details about the service input and results to the log- Returns:
- the
ValidationResponsedata structure created by the validation service - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException- if one of the files given in thefilesToValidateparameter cannot be readIllegalArgumentException- if none of the files given in thefilesToValidateparameter contains a signature
-
validateOneRequest
public ValidationResponse validateOneRequest(List<FileRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs, boolean processUnsignedFiles) throws NoSuchAlgorithmException, IOException, IllegalArgumentException Deprecated.Description copied from interface:IValidationServiceClientValidates a list of files in a single request to the validation service.- Specified by:
validateOneRequestin interfaceIValidationServiceClient- Parameters:
filesToValidate- the list of files to validatepdfReport- a flag specifying whether the validation service should generate and return a report in PDF formatuserOrganization- theuserOrganizationproperty to pass to the validation serviceuserName- theuserOrganizationproperty to pass to the validation servicelanguage- thelanguageproperty to pass to the validation servicepdfReportName- thepdfReportNameproperty that should be echoed by the validation servicedoLogs- a flag specifying whether the call should write details about the service input and results to the logprocessUnsignedFiles- a flag specifying whether files not containing a signature should be processed by the validation service- Returns:
- the
ValidationResponsedata structure created by the validation service - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException- if one of the files given in thefilesToValidateparameter cannot be readIllegalArgumentException- if theprocessUnsignedFilesparameter isfalsenone of the files given in thefilesToValidateparameter contains a signature
-
validateOneRequestS
public ValidationResponse validateOneRequestS(List<StreamRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName) throws NoSuchAlgorithmException, FileNotFoundException, IOException, IllegalArgumentException Deprecated.Description copied from interface:IValidationServiceClientSame asIValidationServiceClient.validateOneRequest(List, boolean, String, String, String, String, boolean, boolean)with thedoLogsandprocessUnsignedFilesparameters set tofalse.- Specified by:
validateOneRequestSin interfaceIValidationServiceClient- Parameters:
filesToValidate- the list of input streams to validatepdfReport- a flag specifying whether the validation service should generate and return a report in PDF formatuserOrganization- theuserOrganizationproperty to pass to the validation serviceuserName- theuserOrganizationproperty to pass to the validation servicelanguage- thelanguageproperty to pass to the validation servicepdfReportName- thepdfReportNameproperty that should be echoed by the validation service- Returns:
- the
ValidationResponsedata structure created by the validation service - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException- if one of the input streams given in thefilesToValidateparameter cannot be readIllegalArgumentException- if none of the input streams given in thefilesToValidateparameter contains a signatureFileNotFoundException
-
validateOneRequestS
public ValidationResponse validateOneRequestS(List<StreamRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs) throws NoSuchAlgorithmException, FileNotFoundException, IOException, IllegalArgumentException Deprecated.Description copied from interface:IValidationServiceClientSame asIValidationServiceClient.validateOneRequest(List, boolean, String, String, String, String, boolean, boolean)with theprocessUnsignedFilesparameter set tofalse.- Specified by:
validateOneRequestSin interfaceIValidationServiceClient- Parameters:
filesToValidate- the list of input streams to validatepdfReport- a flag specifying whether the validation service should generate and return a report in PDF formatuserOrganization- theuserOrganizationproperty to pass to the validation serviceuserName- theuserOrganizationproperty to pass to the validation servicelanguage- thelanguageproperty to pass to the validation servicepdfReportName- thepdfReportNameproperty that should be echoed by the validation servicedoLogs- a flag specifying whether the call should write details about the service input and results to the log- Returns:
- the
ValidationResponsedata structure created by the validation service - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException- if one of the input streams given in thefilesToValidateparameter cannot be readIllegalArgumentException- if none of the input streams given in thefilesToValidateparameter contains a signatureFileNotFoundException
-
validateOneRequestS
public ValidationResponse validateOneRequestS(List<StreamRequest> filesToValidate, boolean pdfReport, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs, boolean processUnsignedFiles) throws NoSuchAlgorithmException, FileNotFoundException, IOException, IllegalArgumentException Deprecated.Description copied from interface:IValidationServiceClientValidates a list of input streams in a single request to the validation service.- Specified by:
validateOneRequestSin interfaceIValidationServiceClient- Parameters:
filesToValidate- the list of input streams to validatepdfReport- a flag specifying whether the validation service should generate and return a report in PDF formatuserOrganization- theuserOrganizationproperty to pass to the validation serviceuserName- theuserOrganizationproperty to pass to the validation servicelanguage- thelanguageproperty to pass to the validation servicepdfReportName- thepdfReportNameproperty that should be echoed by the validation servicedoLogs- a flag specifying whether the call should write details about the service input and results to the logprocessUnsignedFiles- a flag specifying whether files not containing a signature should be processed by the validation service- Returns:
- the
ValidationResponsedata structure created by the validation service - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException- if one of the input streams given in thefilesToValidateparameter cannot be readIllegalArgumentException- if theprocessUnsignedFilesparameter isfalsenone of the input streams given in thefilesToValidateparameter contains a signatureFileNotFoundException
-
validateOneRequestZip
public ValidationResponse validateOneRequestZip(List<FileRequest> filesToValidate, String userOrganization, String userName, String language, String zipReportName, boolean doLogs, boolean processUnsignedFiles) throws NoSuchAlgorithmException, IOException, IllegalArgumentException Deprecated.Description copied from interface:IValidationServiceClientValidates a list of files in a single request to the validation service.- Specified by:
validateOneRequestZipin interfaceIValidationServiceClient- Parameters:
filesToValidate- the list of files to validateuserOrganization- theuserOrganizationproperty to pass to the validation serviceuserName- theuserOrganizationproperty to pass to the validation servicelanguage- thelanguageproperty to pass to the validation servicezipReportName- thezipReportNameproperty that should be echoed by the validation servicedoLogs- a flag specifying whether the call should write details about the service input and results to the logprocessUnsignedFiles- a flag specifying whether files not containing a signature should be processed by the validation service- Returns:
- the
ValidationResponsedata structure created by the validation service - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException- if one of the files given in thefilesToValidateparameter cannot be readIllegalArgumentException- if theprocessUnsignedFilesparameter isfalsenone of the files given in thefilesToValidateparameter contains a signature
-
validateOneSignature
public ValidationResponse validateOneSignature(byte[] fileToValidate, String client, boolean pdfReport, String sigName, String docName, String userOrganization, String userName, String language, String pdfReportName) throws NoSuchAlgorithmException, IOException Deprecated.Description copied from interface:IValidationServiceClientSame asIValidationServiceClient.validateOneSignature(byte[], String, boolean, String, String, String, String, String, String, boolean)with thedoLogsparameter set tofalse.- Specified by:
validateOneSignaturein interfaceIValidationServiceClient- Parameters:
fileToValidate- the data containing the signature to validateclient- theclientproperty to pass to the validation servicepdfReport- a flag specifying whether the validation service should generate and return a report in PDF formatsigName- the name of the signature to extract from the given file and validatedocName- the name of the given fileuserOrganization- theuserOrganizationproperty to pass to the validation serviceuserName- theuserOrganizationproperty to pass to the validation servicelanguage- thelanguageproperty to pass to the validation servicepdfReportName- thepdfReportNameproperty that should be echoed by the validation service- Returns:
- the
ValidationResponsedata structure created by the validation service - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException
-
validateOneSignature
public ValidationResponse validateOneSignature(byte[] fileToValidate, String client, boolean pdfReport, String sigName, String docName, String userOrganization, String userName, String language, String pdfReportName, boolean doLogs) throws NoSuchAlgorithmException, IOException Deprecated.Description copied from interface:IValidationServiceClientValidates a single signature entry in a file.- Specified by:
validateOneSignaturein interfaceIValidationServiceClient- Parameters:
fileToValidate- the data containing the signature to validateclient- theclientproperty to pass to the validation servicepdfReport- a flag specifying whether the validation service should generate and return a report in PDF formatsigName- the name of the signature to extract from the given file and validatedocName- the name of the given fileuserOrganization- theuserOrganizationproperty to pass to the validation serviceuserName- theuserOrganizationproperty to pass to the validation servicelanguage- thelanguageproperty to pass to the validation servicepdfReportName- thepdfReportNameproperty that should be echoed by the validation servicedoLogs- a flag specifying whether the call should write details about the service input and results to the log- Returns:
- the
ValidationResponsedata structure created by the validation service - Throws:
NoSuchAlgorithmException- if the SHA-256 hash algorithm is not availableIOException
-
validatePkcs7
public ValidationResponse validatePkcs7(org.bouncycastle.cms.CMSSignedData pkcs7, byte[] plainHash, String client) throws IOException Deprecated.- Specified by:
validatePkcs7in interfaceIValidationServiceClient- Throws:
IOException
-
validatePkcs7
public ValidationResponse validatePkcs7(org.bouncycastle.cms.CMSSignedData pkcs7, byte[] plainHash, String client, boolean doLogs) throws IOException Deprecated.- Specified by:
validatePkcs7in interfaceIValidationServiceClient- Throws:
IOException
-