Class RemoteBasicTimestampProvider
java.lang.Object
br.ufsc.labsec.signature.tsa.providers.TimestampProvider
br.ufsc.labsec.signature.tsa.providers.RemoteBasicTimestampProvider
- All Implemented Interfaces:
TimeStamp
public class RemoteBasicTimestampProvider extends TimestampProvider implements TimeStamp
Esta classe é responsável por se conectar localmente ao TSA e retornar um carimbo de tempo.
É utilizada em testes do Assinador.
-
Field Summary
Fields inherited from class br.ufsc.labsec.signature.tsa.providers.TimestampProvider
component
-
Constructor Summary
Constructors Constructor Description RemoteBasicTimestampProvider(TimeStampComponent timeStampComponent, String credentials, URI tsaUri)
-
Method Summary
Modifier and Type Method Description KeyStoreInformation
constructKeyStoreInformation()
<Encod, Sig extends Signature<Encod>>
byte[]getTimeStamp(FileToBeSigned<? extends TSInformation<Encod,Sig>> fileToBeSigned, SignaturePolicyInterface signaturePolicyInterface, CadesSignatureComponent cadesSigComponent, boolean hasUnsignedAttributes, boolean hasCertificateValues, boolean hasRevocationValues)
Retorna um carimbo de tempo pro conteúdo dadoMethods inherited from class br.ufsc.labsec.signature.tsa.providers.TimestampProvider
request
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface br.ufsc.labsec.signature.tsa.TimeStamp
constructCadesInformation
-
Constructor Details
-
RemoteBasicTimestampProvider
public RemoteBasicTimestampProvider(TimeStampComponent timeStampComponent, String credentials, URI tsaUri)
-
-
Method Details
-
getTimeStamp
public <Encod, Sig extends Signature<Encod>> byte[] getTimeStamp(FileToBeSigned<? extends TSInformation<Encod,Sig>> fileToBeSigned, SignaturePolicyInterface signaturePolicyInterface, CadesSignatureComponent cadesSigComponent, boolean hasUnsignedAttributes, boolean hasCertificateValues, boolean hasRevocationValues)Retorna um carimbo de tempo pro conteúdo dado- Specified by:
getTimeStamp
in interfaceTimeStamp
- Parameters:
fileToBeSigned
- informações de construção do carimbo de temposignaturePolicyInterface
- A política de assinaturacadesSigComponent
- O componente de assinatura CAdEShasUnsignedAttributes
- Indica se a assinatura possui atributos não assinadoshasCertificateValues
- Indica se a assinatura possui o atributo CertificateValueshasRevocationValues
- Indica se a assinatura possui o atributo RevocationValues- Returns:
- O carimbo de tempo pro conteúdo dado
-
constructKeyStoreInformation
- Specified by:
constructKeyStoreInformation
in interfaceTimeStamp
-