public class TslValidation extends java.lang.Object implements ITslValidation
Class that implements the necessary methods to perform certificate validation using a TSL.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
PARAM_CERTIFICATE, PARAM_TSLOBJECT| Constructor and Description |
|---|
TslValidation()
Constructor method for the class TslValidation.java.
|
| Modifier and Type | Method and Description |
|---|---|
ITSLObject |
downloadTLSbyHTTP(java.lang.String uriTSL,
int connectionTimeout,
int readTimeout)
Method that downloads a TSL from a specified URI
|
ITSLObject |
getTSLObjectFromPath(java.lang.String pathTsl)
Method to obtain the TSL mapped from a file.
|
DetectCertInTslInfoAndValidationResponse |
validateCertificateTsl(byte[] certByteArrayB64,
TSLObject tslObject,
java.util.Date detectionDate,
boolean getInfo,
boolean checkRevStatus)
Method that validates a certificate with a given TSL.
|
public TslValidation()
public DetectCertInTslInfoAndValidationResponse validateCertificateTsl(byte[] certByteArrayB64, TSLObject tslObject, java.util.Date detectionDate, boolean getInfo, boolean checkRevStatus) throws TSLManagingException
validateCertificateTsl in interface ITslValidationcertByteArrayB64 - Certificate to detect (byte[] in Base64 encoded).tslObject - TSL object representation to use.detectionDate - Date to use to detect and validate the input certificate.getInfo - Flag that indicates if it is necessary to get the certificate information in response.checkRevStatus - Flag that indicates if it is necessary to check the revocation status of the input certificate.TSLManagingException - If some error is produced in the execution of the service.ITslValidation.validateCertificateTsl(byte[], TSLObject, Date, boolean, boolean)public ITSLObject getTSLObjectFromPath(java.lang.String pathTsl) throws TSLManagingException
getTSLObjectFromPath in interface ITslValidationpathTsl - Path where the file with the TSL is located.TSLManagingException - In case of some error getting the information from the file.ITslValidation.getTSLObjectFromPath(java.lang.String)public ITSLObject downloadTLSbyHTTP(java.lang.String uriTSL, int connectionTimeout, int readTimeout) throws TSLManagingException
downloadTLSbyHTTP in interface ITslValidationuriTSL - RL from where the TSL will be downloaded.connectionTimeout - Max millis to connect to server.readTimeout - Max millis to read the response.TSLManagingException - In case of some error getting the information from the file.ITslValidation.downloadTLSbyHTTP(String, int, int)