All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.gov.ida.saml.hub.transformers.inbound.InboundHealthCheckResponseFromMatchingServiceUnmarshaller Maven / Gradle / Ivy

There is a newer version: 3.4.6-15872
Show newest version
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