public interface ITslValidation
Interface that publishes the necessary methods to perform certificate validation through a TSL.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_CERTIFICATE
Constant attribute that represents the token parameter 'certificate'.
|
static java.lang.String |
PARAM_TSLOBJECT
Constant attribute that represents the token parameter 'tslObject'.
|
| 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 date,
boolean getInfo,
boolean checkRevStatus)
Method that validates a certificate with a given TSL.
|
static final java.lang.String PARAM_CERTIFICATE
static final java.lang.String PARAM_TSLOBJECT
DetectCertInTslInfoAndValidationResponse validateCertificateTsl(byte[] certByteArrayB64, TSLObject tslObject, java.util.Date date, boolean getInfo, boolean checkRevStatus) throws TSLManagingException
certByteArrayB64 - Certificate to detect (byte[] in Base64 encoded).tslObject - TSL object representation to use.date - 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.ITSLObject getTSLObjectFromPath(java.lang.String pathTsl) throws TSLManagingException
pathTsl - Path where the file with the TSL is located.TSLManagingException - In case of some error getting the information from the file.ITSLObject downloadTLSbyHTTP(java.lang.String uriTSL, int connectionTimeout, int readTimeout) throws TSLManagingException
uriTSL - 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.