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
|
java.util.Map<java.lang.String,java.lang.String> |
getLogicalFieldsTSL(byte[] certByteArrayB64,
TSLObject tslObject)
Method to obtain the logical fields from the date of issuance of the certificate.
|
ITSLObject |
getTSLObjectFromPath(java.lang.String pathTsl)
Method to obtain the TSL mapped from a file.
|
static final java.lang.String PARAM_CERTIFICATE
static final java.lang.String PARAM_TSLOBJECT
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.TSLManagingException - In case of some error getting the information from the file.java.util.Map<java.lang.String,java.lang.String> getLogicalFieldsTSL(byte[] certByteArrayB64,
TSLObject tslObject)
throws TSLManagingException
certByteArrayB64 - Certificate to detect (byte[] in Base64 encoded).tslObject - TSL object representation to use.TSLManagingException - If some error is produced in the execution of the service.