uk.gov.ida.saml.hub.transformers.outbound.UnknownUserCreationIdaStatusMarshaller Maven / Gradle / Ivy
package uk.gov.ida.saml.hub.transformers.outbound;
import com.google.common.collect.ImmutableMap;
import uk.gov.ida.saml.core.OpenSamlXmlObjectFactory;
import uk.gov.ida.saml.core.domain.DetailedStatusCode;
import uk.gov.ida.saml.core.domain.UnknownUserCreationIdaStatus;
import uk.gov.ida.saml.core.transformers.outbound.IdaStatusMarshaller;
public class UnknownUserCreationIdaStatusMarshaller extends IdaStatusMarshaller {
private static final ImmutableMap REST_TO_SAML_CODES =
ImmutableMap.builder()
.put(UnknownUserCreationIdaStatus.CreateFailure, DetailedStatusCode.UnknownUserCreateFailure)
.put(UnknownUserCreationIdaStatus.Success, DetailedStatusCode.UnknownUserCreateSuccess)
.put(UnknownUserCreationIdaStatus.NoAttributeFailure, DetailedStatusCode.UnknownUserNoAttributeFailure)
.build();
public UnknownUserCreationIdaStatusMarshaller(OpenSamlXmlObjectFactory samlObjectFactory) {
super(samlObjectFactory);
}
@Override
protected DetailedStatusCode getDetailedStatusCode(UnknownUserCreationIdaStatus originalStatus) {
return REST_TO_SAML_CODES.get(originalStatus);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy