Class KeycloakNuxeoDeployment


  • public class KeycloakNuxeoDeployment
    extends Object
    This class is developed to overcome a Jackson version problem between Nuxeo and Keycloak.
    Nuxeo uses Jackson version 1.8.x where Keycloak uses 1.9.x
    Sadly the ObjectMapper.setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include) method is not in 1.8.x
    Then KeycloakNuxeoDeployment is the same class as KeycloakDeploymentBuilder, rewriting static method KeycloakDeploymentBuilder.loadAdapterConfig(java.io.InputStream) to avoid the use of ObjectMapper.setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include)
    Since:
    7.4
    • Method Detail

      • build

        public static org.keycloak.adapters.KeycloakDeployment build​(InputStream is)
        Invokes KeycloakDeploymentBuilder.internalBuild with reflection to avoid rewriting source code
        Parameters:
        is - the configuration file InputStream
        Returns:
        the KeycloakDeployment corresponding to the configuration file