use of uk.gov.ida.saml.hub.domain.InboundHealthCheckResponseFromMatchingService in project verify-hub by alphagov.
the class MatchingServiceHealthcheckResponseTranslatorService method translate.
public MatchingServiceHealthCheckerResponseDto translate(SamlMessageDto samlMessageDto) {
Response response = responseUnmarshaller.apply(samlMessageDto.getSamlMessage());
MdcHelper.addContextToMdc(response);
final InboundHealthCheckResponseFromMatchingService responseFromMatchingService = samlResponseToInboundHealthCheckResponseFromMatchingServiceTransformer.transform(response);
final MatchingServiceHealthCheckerResponseDto matchingServiceHealthCheckerResponseDto = new MatchingServiceHealthCheckerResponseDto(responseFromMatchingService.getStatus(), responseFromMatchingService.getInResponseTo(), responseFromMatchingService.getIssuer(), responseFromMatchingService.getId());
return matchingServiceHealthCheckerResponseDto;
}
Aggregations