Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi.poifs.crypt.dsig.services
Interface TimeStampService

All Superinterfaces:
  SignatureConfig.SignatureConfigurable

All Known Implementing Classes:
  TSPTimeStampService

    public interface TimeStampService

extends SignatureConfig.SignatureConfigurable

Interface for a time-stamp service.

Author:
  Frank Cornelis

Method Summary
`byte[]` | `timeStamp(byte[] data, RevocationData revocationData)` Gives back the encoded time-stamp token for the given array of data bytes.

Methods inherited from interface org.apache.poi.poifs.crypt.dsig.SignatureConfig.SignatureConfigurable
`setSignatureConfig`

Method Detail

### timeStamp

    byte[] timeStamp(byte[] data,
                     RevocationData revocationData)
                     throws java.lang.Exception

  Gives back the encoded time-stamp token for the given array of data bytes. We assume that the time-stamp token itself contains its full certificate chain required for proper validation.

  Parameters:
    `data` - the data to be time-stamped.
    `revocationData` - the optional container that needs to be filled up with the revocation data used to validate the TSA certificate chain.
  Returns:
    the DER encoded time-stamp token.
  Throws:
    `java.lang.Exception` - in case something went wrong.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2017 The Apache Software Foundation or its licensors, as applicable.