be.ehealth.technicalconnector.service.timestamp.impl
Class ConsultServiceImpl

java.lang.Object
  extended by be.ehealth.technicalconnector.service.timestamp.impl.AbstractConsultationServiceImpl<TSConsultTSBagRequest,TSConsultTSBagResponse,TSConsultRequest,TSConsultResponse>
      extended by be.ehealth.technicalconnector.service.timestamp.impl.ConsultServiceImpl
All Implemented Interfaces:
ConsultService

public class ConsultServiceImpl
extends AbstractConsultationServiceImpl<TSConsultTSBagRequest,TSConsultTSBagResponse,TSConsultRequest,TSConsultResponse>
implements ConsultService

Implementation of ConsultService


Constructor Summary
ConsultServiceImpl()
           
 
Method Summary
 TSConsultResponse checkCompleteness(X509Certificate certificate, PrivateKey privateKey, TSConsultRequest consultRequest)
          Retrieves the list of missing time stamps, provided is a time period and list of time stamps (id and times).
 TSConsultTSBagResponse getTimestamp(X509Certificate certificate, PrivateKey privateKey, TSConsultTSBagRequest consultRequest)
          Retrieves an actual time stamp from the eHealth-platform Archive, based on a unique sequence number and a time.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsultServiceImpl

public ConsultServiceImpl()
Method Detail

getTimestamp

public TSConsultTSBagResponse getTimestamp(X509Certificate certificate,
                                           PrivateKey privateKey,
                                           TSConsultTSBagRequest consultRequest)
                                    throws TechnicalConnectorException
Description copied from interface: ConsultService
Retrieves an actual time stamp from the eHealth-platform Archive, based on a unique sequence number and a time.

Specified by:
getTimestamp in interface ConsultService
Parameters:
certificate - X.509 certificate, that includes the public key, of the organization invoking this service. This certificate is used for applying the required web service security policy. Eventually it is used for authentication and authorization purposes by the eHealth-platform.
privateKey - Private key, linked to the X.509 certificate mentioned above.
consultRequest - Request message for the Get Time Stamp operation.
Returns:
the timestamp Response from the Get Time Stamp operation. The data about the referenced Timestamp Bag is returned
Throws:
TechnicalConnectorException - the technical connector exception

checkCompleteness

public TSConsultResponse checkCompleteness(X509Certificate certificate,
                                           PrivateKey privateKey,
                                           TSConsultRequest consultRequest)
                                    throws TechnicalConnectorException
Description copied from interface: ConsultService
Retrieves the list of missing time stamps, provided is a time period and list of time stamps (id and times).

Specified by:
checkCompleteness in interface ConsultService
Parameters:
certificate - X.509 certificate, that includes the public key, of the organization invoking this service. This certificate is used for applying the required web service security policy. Eventually it is used for authentication and authorization purposes by the eHealth-platform.
privateKey - Private key, linked to the X.509 certificate mentioned above.
consultRequest - Request message for the Check Completeness operation.
Returns:
the TS consult response Response message for the Check Completeness operation.
Throws:
TechnicalConnectorException - the technical connector exception



Connector Packaging TECHNICAL 3.14.2 API
Copyright © {inceptionYear}-2018 eHealth. All Rights Reserved.