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
|
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.
|
public TslValidation()
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.TSLManagingException - In case of some error getting the information from the file.es.gob.afirma.tsl.ITslValidation#downloadTLSbyHTTP(java.lang.String)public java.util.Map<java.lang.String,java.lang.String> getLogicalFieldsTSL(byte[] certByteArrayB64,
TSLObject tslObject)
throws TSLManagingException
getLogicalFieldsTSL in interface ITslValidationcertByteArrayB64 - 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.ITslValidation.getLogicalFieldsTSL(byte[], es.gob.afirma.tsl.parsing.impl.common.TSLObject)