@@ -0,0 +1,687 @@
+/*%0A * Copyright 2016 Datalogics Inc.%0A */%0A%0Apackage com.datalogics.pdf.hsm.samples;%0A%0A/**%0A * Used to get instances of a HsmManager object.%0A */%0Apublic final class HsmManagerFactory %7B%0A%0A    public static final int LUNA_SA_HSM = 1;%0A%0A    /**%0A     * Factory class should not be instantiated.%0A     */%0A    private HsmManagerFactory() %7B%7D%0A%0A    /**%0A     * Gets a instance of a HsmManager for the needed type of HSM device.%0A     *%0A     * @param type - Type of HSM device you are connecting to%0A     * @return HsmManager%0A     */%0A%0A    public static HsmManager getInstance(final int type) %7B%0A        if (type == LUNA_SA_HSM) %7B%0A            return new LunaHsmManager();%0A        %7D%0A        return null;%0A    %7D%0A%7D%0A

Add factory class for HsmManager instances.