public final class TSLManager
extends java.lang.Object
Class that reprensents the TSL Manager for all the differents operations.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
ITSLObject |
buildTsl(java.io.ByteArrayInputStream bais)
Method to obtain the TSL mapped from a file.
|
static TSLManager |
getInstance()
Gets the unique instance of this class.
|
java.util.Set<java.lang.String> |
getSetOfURLStringThatRepresentsEuLOTL()
Gets the set of URL (String format) that represents the official
european list of trusted lists.
|
java.lang.String |
getSetOfURLStringThatRepresentsEuLOTLinString()
Gets the set of URL (String format) that represents the official
european list of trusted lists splitted by commas.
|
ITSLValidatorResult |
validateX509withTSL(java.security.cert.X509Certificate cert,
java.util.Date validationDate,
boolean checkStatusRevocation,
boolean calculateMappings,
TSLObject tslObject)
Tries to validate the input X509v3 certificate with.
|
public static TSLManager getInstance()
TSLManager class.public ITSLObject buildTsl(java.io.ByteArrayInputStream bais) throws TSLManagingException
bais - InputStream Input Stream of the XML (TSL representation).TSLManagingException - In case of some error getting the information from the file.public java.util.Set<java.lang.String> getSetOfURLStringThatRepresentsEuLOTL()
public java.lang.String getSetOfURLStringThatRepresentsEuLOTLinString()
public ITSLValidatorResult validateX509withTSL(java.security.cert.X509Certificate cert, java.util.Date validationDate, boolean checkStatusRevocation, boolean calculateMappings, TSLObject tslObject) throws TSLManagingException
auditTransNumber - Audit transaction number.cert - X509v3 certificate to validate.validationDate - Validation date to check.checkStatusRevocation - Flag that indicates if only try to detect the input certificate (false)
or also checks the revocation status of this (true).calculateMappings - Flag that indicates if it is necessary to calculate the mappings associated if the certificate
has been detected (true) or not (false).tslObject - TSL object representation to use.TSLManagingException - If there is some error with the cache or validating the certificate with the TSL.