/*
 * Copyright 2016 Datalogics Inc.
 */

package com.datalogics.pdf.security;

import java.io.IOException;

/**
 * Used to get instances of a HsmManager object.
 */
public final class HsmManagerFactory {

    /**
     * Luna SA Hsm Type.
     */
    public static final String LUNA_HSM_TYPE = "luna";

    /**
     * Factory class should not be instantiated.
     */
    private HsmManagerFactory() {}

    /**
     * Gets a new instance of a HsmManager for the needed type of HSM device.
     *
     * @param hsmType - Type of HSM device you are connecting to
     * @return HsmManager
     * @throws IOException an I/O operation failed or was interrupted
     */

    public static HsmManager newInstance(final String hsmType) throws IOException {
        if (hsmType.equals(LUNA_HSM_TYPE)) {
            return new LunaHsmManager();
        }
        throw new IllegalArgumentException("Must use a valid HsmType");
    }
}

@@ -77,36 +77,8 @@
 y;%0A%0A
-import java.io.IOException;%0A
 %0A/**
@@ -557,78 +557,8 @@
 ger%0A
-     * @throws IOException an I/O operation failed or was interrupted%0A
     
@@ -628,27 +628,8 @@
 ype)
- throws IOException
  %7B%0A 

Remove throws declaration.