|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ehealth.businessconnector.chapterIV.builders.impl.ResponseBuilderImpl
public class ResponseBuilderImpl
handles response objects. retrieves subObjects. Implements : ResponseBuilder
| Constructor Summary | |
|---|---|
ResponseBuilderImpl()
default constructor : only needed for ModuleBootstrapHook. |
|
ResponseBuilderImpl(Chapter4XmlValidator validator)
|
|
ResponseBuilderImpl(Crypto crypto,
Chapter4XmlValidator validator)
Deprecated. use ResponseBuilderImpl(Chapter4XmlValidator validator) instead , the HolderOfKeyCrypto is now retrieved directly from the session. |
|
| Method Summary | |
|---|---|
void |
bootstrap()
|
Kmehrresponse |
convertToKmehrResKmehrresponse(byte[] bytes)
|
org.bouncycastle.tsp.TimeStampResponse |
convertToTimeStampResponse(byte[] bytes)
|
byte[] |
getSecuredContent(Chap4MedicalAdvisorAgreementResponseWrapper<?> agreementResponse)
|
static org.bouncycastle.tsp.TimeStampResponse |
getTimestampResponse(byte[] tsTokenResponse)
|
UnsealedResponseWrapper<?> |
getUnsealedResponse(byte[] unsealedSecuredContent,
ConversationType type)
|
FaultType |
retrieveReturnInfo(ResponseType response)
retrieves the returnInfo with detailed error |
ChapterIVKmehrResponseWithTimeStampInfo |
validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(AskChap4MedicalAdvisorAgreementResponse response)
validates and decodes response and retrieves kmehrResponse and timestamp info. |
ChapterIVKmehrResponseWithTimeStampInfo |
validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(AskChap4MedicalAdvisorAgreementResponse response,
boolean ignoreWarnings)
validates and decodes response and retrieves kmehrResponse and timestamp info. if the ignoreWarnings parameter is set to true , non blocking warnings when unsealing will be ignored and the unsealing will continue. this allows the unsealing of old messages with expired certificates. |
ChapterIVKmehrResponseWithTimeStampInfo |
validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(ConsultChap4MedicalAdvisorAgreementResponse response)
validates and decodes response and retrieves kmehrResponse and timestamp info. |
ChapterIVKmehrResponseWithTimeStampInfo |
validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(ConsultChap4MedicalAdvisorAgreementResponse response,
boolean ignoreWarnings)
validates and decodes response and retrieves kmehrResponse and timestamp info. if the ignoreWarnings parameter is set to true , non blocking warnings when unsealing will be ignored and the unsealing will continue. this allows the unsealing of old messages with expired certificates. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public ResponseBuilderImpl(Crypto crypto,
Chapter4XmlValidator validator)
crypto - validator - Chapter4XmlValidatorpublic ResponseBuilderImpl()
public ResponseBuilderImpl(Chapter4XmlValidator validator)
crypto - validator - Chapter4XmlValidator| Method Detail |
|---|
public FaultType retrieveReturnInfo(ResponseType response)
ResponseBuilder
retrieveReturnInfo in interface ResponseBuilderresponse - ResponseType
FaultTypeResponseBuilder.retrieveReturnInfo(be.fgov.ehealth.commons.protocol.v1.ResponseType)
public ChapterIVKmehrResponseWithTimeStampInfo validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(AskChap4MedicalAdvisorAgreementResponse response)
throws UnsealConnectorException,
ChapterIVBusinessConnectorException,
TechnicalConnectorException
ResponseBuilder
validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo in interface ResponseBuilderChapterIVKmehrResponseWithTimeStampInfo
ChapterIVBusinessConnectorException
TechnicalConnectorException
UnsealConnectorExceptionResponseBuilder.validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(be.fgov.ehealth.chap4.protocol.v1.AskChap4MedicalAdvisorAgreementResponse)
public ChapterIVKmehrResponseWithTimeStampInfo validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(AskChap4MedicalAdvisorAgreementResponse response,
boolean ignoreWarnings)
throws UnsealConnectorException,
ChapterIVBusinessConnectorException,
TechnicalConnectorException
ResponseBuilder
validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo in interface ResponseBuilderUnsealConnectorException
ChapterIVBusinessConnectorException
TechnicalConnectorExceptionResponseBuilder.validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(be.fgov.ehealth.chap4.protocol.v1.AskChap4MedicalAdvisorAgreementResponse)
public org.bouncycastle.tsp.TimeStampResponse convertToTimeStampResponse(byte[] bytes)
throws TechnicalConnectorException
convertToTimeStampResponse in interface ResponseBuilderTechnicalConnectorExceptionResponseBuilder.convertToTimeStampResponse(byte[])
public Kmehrresponse convertToKmehrResKmehrresponse(byte[] bytes)
throws ChapterIVBusinessConnectorException
convertToKmehrResKmehrresponse in interface ResponseBuilderChapterIVBusinessConnectorExceptionResponseBuilder.convertToKmehrResKmehrresponse(byte[])
public ChapterIVKmehrResponseWithTimeStampInfo validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(ConsultChap4MedicalAdvisorAgreementResponse response)
throws ChapterIVBusinessConnectorException,
TechnicalConnectorException
ResponseBuilder
validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo in interface ResponseBuilderresponse - ConsultChap4MedicalAdvisorAgreementResponse
ChapterIVKmehrResponseWithTimeStampInfo
ChapterIVBusinessConnectorException
TechnicalConnectorExceptionResponseBuilder.validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(be.fgov.ehealth.chap4.protocol.v1.ConsultChap4MedicalAdvisorAgreementResponse)
public ChapterIVKmehrResponseWithTimeStampInfo validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(ConsultChap4MedicalAdvisorAgreementResponse response,
boolean ignoreWarnings)
throws ChapterIVBusinessConnectorException,
TechnicalConnectorException
ResponseBuilder
validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo in interface ResponseBuilderChapterIVBusinessConnectorException
UnsealConnectorException
TechnicalConnectorExceptionResponseBuilder.validateTimestampAndretrieveChapterIVKmehrResponseWithTimeStampInfo(be.fgov.ehealth.chap4.protocol.v1.ConsultChap4MedicalAdvisorAgreementResponse)
public static org.bouncycastle.tsp.TimeStampResponse getTimestampResponse(byte[] tsTokenResponse)
throws TechnicalConnectorException
TechnicalConnectorException
public UnsealedResponseWrapper<?> getUnsealedResponse(byte[] unsealedSecuredContent,
ConversationType type)
unsealedSecuredContent -
public byte[] getSecuredContent(Chap4MedicalAdvisorAgreementResponseWrapper<?> agreementResponse)
throws ChapterIVBusinessConnectorException
agreementResponse -
ChapterIVBusinessConnectorExceptionpublic void bootstrap()
bootstrap in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||