@@ -0,0 +1,1310 @@
+/**%0A* OpenCPS PKI is the open source PKI Integration software%0A* Copyright (C) 2016-present OpenCPS community%0A%0A* This program is free software: you can redistribute it and/or modify%0A* it under the terms of the GNU Affero General Public License as published by%0A* the Free Software Foundation, either version 3 of the License, or%0A* any later version.%0A%0A* This program is distributed in the hope that it will be useful,%0A* but WITHOUT ANY WARRANTY; without even the implied warranty of%0A* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A* GNU Affero General Public License for more details.%0A* You should have received a copy of the GNU Affero General Public License%0A* along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E%0A*/%0Apackage org.opencps.pki;%0A%0A/**%0A * This class defines various static utility functions that are in use%0A * throughout the OpenCPS PKI system.%0A *%0A * @author Nguyen Van Nguyen %3Cnguyennv@iwayvietnam.com%3E%0A */%0Apublic class Helper %7B%0A%0A%09/**%0A%09 * Strip file extension%0A%09 * @param filePath%0A%09 */%0A    public static String stripFileExtension(String filePath) %7B%0A        if (filePath == null) %7B%0A            return null;%0A        %7D%0A        int n = filePath.lastIndexOf(%22.%22);%0A        if (n == -1) %7B%0A            return filePath;%0A        %7D%0A        return filePath.substring(0, n);%0A    %7D%0A%0A%7D%0A

Define helper class