Record Class DSSOnlineTrustedListLoader
java.lang.Object
java.lang.Record
br.ufsc.labsec.trustedList.dss.DSSOnlineTrustedListLoader
- All Implemented Interfaces:
eu.europa.esig.dss.spi.client.http.DSSCacheFileLoader, eu.europa.esig.dss.spi.client.http.DSSFileLoader, Serializable
public record DSSOnlineTrustedListLoader(TrustPointDB database)
extends Record
implements eu.europa.esig.dss.spi.client.http.DSSCacheFileLoader
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.hc.core5.util.TimeoutTimeout para o download de arquivos. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Returns the value of thedatabaserecord component.final booleanIndicates whether some other object is "equal to" this one.eu.europa.esig.dss.model.DSSDocumentgetDocument(String url) Retorna o arquivo baixado contido em umDSSDocument.eu.europa.esig.dss.model.DSSDocumentgetDocument(String url, boolean refresh) Retorna o arquivo baixado contido em umDSSSourcedDocument, acompanhado de informações sobre a validade e obtenção deste arquivo.final inthashCode()Returns a hash code value for this object.booleanRemove um arquivo em cache.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TIMEOUT
public static final org.apache.hc.core5.util.Timeout TIMEOUTTimeout para o download de arquivos.
-
-
Constructor Details
-
DSSOnlineTrustedListLoader
Construtor- Parameters:
database- Banco de dados
-
-
Method Details
-
getSourcedDocument
Retorna o arquivo baixado contido em umDSSSourcedDocument, acompanhado de informações sobre a validade e obtenção deste arquivo.- Parameters:
s-Stringurl do arquivo a ser baixado.- Returns:
- Arquivo baixado contido em um
DSSSourcedDocument.
-
getDocumentFromCache
- Specified by:
getDocumentFromCachein interfaceeu.europa.esig.dss.spi.client.http.DSSCacheFileLoader
-
getDocument
- Specified by:
getDocumentin interfaceeu.europa.esig.dss.spi.client.http.DSSCacheFileLoader
-
getDocument
public eu.europa.esig.dss.model.DSSDocument getDocument(String url) throws eu.europa.esig.dss.model.DSSException Retorna o arquivo baixado contido em umDSSDocument.- Specified by:
getDocumentin interfaceeu.europa.esig.dss.spi.client.http.DSSFileLoader- Parameters:
url-Stringurl do arquivo a ser baixado.- Returns:
- Arquivo baixado contido em um
DSSDocument. - Throws:
eu.europa.esig.dss.model.DSSException- caso haja algum problema na obtenção do arquivo.
-
remove
Remove um arquivo em cache.- Specified by:
removein interfaceeu.europa.esig.dss.spi.client.http.DSSCacheFileLoader- Parameters:
s-Stringurl de download do arquivo (o mesmo utilizado para baixar e definir o nome de armazenamento de arquivo)- Returns:
- valor lógico indicando se o arquivo foi corretamente removido.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-