public final class ResponseBuilderImpl extends Object implements ResponseBuilder, ConfigurableImplementation, ConfigurationModuleBootstrap.ModuleBootstrapHook
| Type | Property and Description |
|---|---|
String |
retrieveResponseXades
retrieves the xades property, if not found a default of none will be returned.
|
PROJECT_NAME_KEY| Constructor and Description |
|---|
ResponseBuilderImpl()
default constructor needed for ModuleBootstrapHook.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bootstrap() |
void |
createInvalidBlobContentConnectorException(Blob blob,
SignatureVerificationResult result,
Base64Binary xades)
creates the error message for a failed validation.
|
static ResponseBuilder |
getInstance() |
String |
getResponse(SendResponseType responseType) |
String |
getResponse(SendResponseType responseType) |
String |
getResponse(SendResponseType responseType,
boolean validate) |
String |
getResponse(SendResponseType responseType,
boolean validate) |
void |
initialize(Map<String,Object> parameterMap)
initializes the implementation with additional parameters.
|
Blob |
mapBlobTypeToBlob(BlobType inBlob) |
Blob |
mapBlobTypeToBlob(BlobType inBlob) |
String |
retrieveResponseXadesProperty()
retrieves the xades property, if not found a default of none will be returned.
|
void |
validateHash(Blob blob) |
void |
validateXades(SendResponseType responseType)
validates the xades in the response type.
|
void |
validateXades(SendResponseType responseType,
Blob blob)
Deprecated.
: see interface , use the method without the second parameter instead
|
public String retrieveResponseXadesProperty
public ResponseBuilderImpl()
public static ResponseBuilder getInstance()
public void initialize(Map<String,Object> parameterMap) throws TechnicalConnectorException
ConfigurableImplementationinitialize in interface ConfigurableImplementationparameterMap - Map with for each propertyString ,the input parameter as Object.TechnicalConnectorException - if the parameterMap is not correct.public void validateHash(Blob blob) throws TechnicalConnectorException
validateHash in interface ResponseBuilderblob - will throw InvalidBlobContentConnectorException if the hash is not correct.TechnicalConnectorExceptionbe.ehealth.business.mycarenetcommons.builders.ResponseBuilder#validateHash(be.fgov.ehealth.mycarenet.commons.protocol.v3.SendResponseType)@Deprecated public void validateXades(SendResponseType responseType, Blob blob) throws TechnicalConnectorException
validateXades in interface ResponseBuilderblob - will throw InvalidBlobContentConnectorException if the xades is not correct.TechnicalConnectorExceptionResponseBuilder.validateXades(be.fgov.ehealth.mycarenet.commons.protocol.v3.SendResponseType)public void createInvalidBlobContentConnectorException(Blob blob, SignatureVerificationResult result, Base64Binary xades) throws InvalidBlobContentConnectorException
blob - result - InvalidBlobContentConnectorExceptionpublic void validateXades(SendResponseType responseType) throws TechnicalConnectorException
ResponseBuildervalidateXades in interface ResponseBuilderresponseType - the SendResponseType to validate will throw InvalidBlobContentConnectorException if the xades is not
correct.TechnicalConnectorExceptionpublic String retrieveResponseXadesProperty()
public String getResponse(SendResponseType responseType) throws TechnicalConnectorException
getResponse in interface ResponseBuilderTechnicalConnectorExceptionpublic String getResponse(SendResponseType responseType) throws TechnicalConnectorException
getResponse in interface ResponseBuilderTechnicalConnectorExceptionpublic String getResponse(SendResponseType responseType, boolean validate) throws TechnicalConnectorException
getResponse in interface ResponseBuilderTechnicalConnectorExceptionResponseBuilder.getResponse(be.fgov.ehealth.mycarenet.commons.protocol.v3.SendResponseType,
boolean)public String getResponse(SendResponseType responseType, boolean validate) throws TechnicalConnectorException
getResponse in interface ResponseBuilderTechnicalConnectorExceptionpublic void bootstrap()
bootstrap in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
Connector Packaging generic 4.2.0 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.