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
ConfigurableImplementation
initialize
in interface ConfigurableImplementation
parameterMap
- 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 ResponseBuilder
blob
- will throw InvalidBlobContentConnectorException if the hash is not correct.TechnicalConnectorException
be.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 ResponseBuilder
blob
- will throw InvalidBlobContentConnectorException if the xades is not correct.TechnicalConnectorException
ResponseBuilder.validateXades(be.fgov.ehealth.mycarenet.commons.protocol.v3.SendResponseType)
public void createInvalidBlobContentConnectorException(Blob blob, SignatureVerificationResult result, Base64Binary xades) throws InvalidBlobContentConnectorException
blob
- result
- InvalidBlobContentConnectorException
public void validateXades(SendResponseType responseType) throws TechnicalConnectorException
ResponseBuilder
validateXades
in interface ResponseBuilder
responseType
- the SendResponseType
to validate will throw InvalidBlobContentConnectorException if the xades is not
correct.TechnicalConnectorException
public String retrieveResponseXadesProperty()
public String getResponse(SendResponseType responseType) throws TechnicalConnectorException
getResponse
in interface ResponseBuilder
TechnicalConnectorException
public String getResponse(SendResponseType responseType) throws TechnicalConnectorException
getResponse
in interface ResponseBuilder
TechnicalConnectorException
public String getResponse(SendResponseType responseType, boolean validate) throws TechnicalConnectorException
getResponse
in interface ResponseBuilder
TechnicalConnectorException
ResponseBuilder.getResponse(be.fgov.ehealth.mycarenet.commons.protocol.v3.SendResponseType,
boolean)
public String getResponse(SendResponseType responseType, boolean validate) throws TechnicalConnectorException
getResponse
in interface ResponseBuilder
TechnicalConnectorException
public void bootstrap()
bootstrap
in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.