/* (c) 2015 Open Source Geospatial Foundation - all rights reserved * (c) 2015 OpenPlans * This code is licensed under the GPL 2.0 license, available at the root * application directory. */ package org.geoserver.geoserver.authentication; import com.thoughtworks.xstream.XStream; import org.geoserver.config.util.XStreamPersister; import org.geoserver.config.util.XStreamPersisterInitializer; import org.geoserver.geoserver.authentication.auth.GeoFenceAuthenticationProviderConfig; /** * * @author ETj (etj at geo-solutions.it) */ public class GeoFenceXStreamPersisterInitializer implements XStreamPersisterInitializer { @Override public void init(XStreamPersister persister) { XStream xs = persister.getXStream(); xs.alias("geoFenceAuthenticationProviderConfig", GeoFenceAuthenticationProviderConfig.class); xs.allowTypes( new Class[]{GeoFenceAuthenticationProviderConfig.class}); } }