uk.gov.ida.saml.hub.transformers.inbound.InboundHealthCheckResponseFromMatchingServiceUnmarshaller Maven / Gradle / Ivy
package uk.gov.ida.saml.hub.transformers.inbound;
import org.opensaml.saml.saml2.core.Response;
import uk.gov.ida.saml.hub.domain.InboundHealthCheckResponseFromMatchingService;
public class InboundHealthCheckResponseFromMatchingServiceUnmarshaller {
private MatchingServiceIdaStatusUnmarshaller statusUnmarshaller;
public InboundHealthCheckResponseFromMatchingServiceUnmarshaller(
MatchingServiceIdaStatusUnmarshaller statusUnmarshaller) {
this.statusUnmarshaller = statusUnmarshaller;
}
public InboundHealthCheckResponseFromMatchingService fromSaml(Response response) {
MatchingServiceIdaStatus transformedStatus = statusUnmarshaller.fromSaml(response.getStatus());
return new InboundHealthCheckResponseFromMatchingService(
response.getID(),
response.getInResponseTo(),
response.getIssuer().getValue(),
response.getIssueInstant(),
transformedStatus);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy