Class RemoteTimestampProvider
java.lang.Object
br.ufsc.labsec.signature.tsa.providers.TimestampProvider
br.ufsc.labsec.signature.tsa.providers.RemoteTimestampProvider
- All Implemented Interfaces:
TimeStamp
public class RemoteTimestampProvider 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 RemoteTimestampProvider(TimeStampComponent timeStampComponent)
-
Method Summary
Modifier and Type Method Description <Encod, Sig extends Signature<Encod>>
TSInformation<Encod,Sig>constructCadesInformation(Sig stampedSignature)
KeyStoreInformation
constructKeyStoreInformation()
<Encod, Sig extends Signature<Encod>>
byte[]getTimeStamp(FileToBeSigned<? extends TSInformation<Encod,Sig>> fileToBeSigned)
Retorna um carimbo de tempo pro conteúdo dadoMethods inherited from class br.ufsc.labsec.signature.tsa.providers.TimestampProvider
request
-
Constructor Details
-
RemoteTimestampProvider
-
-
Method Details
-
getTimeStamp
public <Encod, Sig extends Signature<Encod>> byte[] getTimeStamp(FileToBeSigned<? extends TSInformation<Encod,Sig>> fileToBeSigned)Retorna um carimbo de tempo pro conteúdo dado- Specified by:
getTimeStamp
in interfaceTimeStamp
- Parameters:
fileToBeSigned
- informações de construção do carimbo de tempo- Returns:
- O carimbo de tempo pro conteúdo dado
-
constructCadesInformation
public <Encod, Sig extends Signature<Encod>> TSInformation<Encod,Sig> constructCadesInformation(Sig stampedSignature)- Specified by:
constructCadesInformation
in interfaceTimeStamp
-
constructKeyStoreInformation
- Specified by:
constructKeyStoreInformation
in interfaceTimeStamp
-