You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2021/05/26 06:42:51 UTC

[syncope] branch 2_1_X updated: Remove unused PasswordGenerator class in the installer (#266)

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_1_X by this push:
     new 8c4cb14  Remove unused PasswordGenerator class in the installer (#266)
8c4cb14 is described below

commit 8c4cb14935c7a40e71729587866213610d3cc4a1
Author: Colm O hEigeartaigh <co...@users.noreply.github.com>
AuthorDate: Wed May 26 07:42:44 2021 +0100

    Remove unused PasswordGenerator class in the installer (#266)
---
 .../installer/utilities/PasswordGenerator.java     | 44 ----------------------
 1 file changed, 44 deletions(-)

diff --git a/installer/src/main/java/org/apache/syncope/installer/utilities/PasswordGenerator.java b/installer/src/main/java/org/apache/syncope/installer/utilities/PasswordGenerator.java
deleted file mode 100644
index 4d2c602..0000000
--- a/installer/src/main/java/org/apache/syncope/installer/utilities/PasswordGenerator.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.syncope.installer.utilities;
-
-import java.security.MessageDigest;
-import java.security.NoSuchAlgorithmException;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.xml.bind.DatatypeConverter;
-
-public final class PasswordGenerator {
-
-    public static String password(final String password, final String digest) {
-        String pwd = "";
-        try {
-            final MessageDigest cript = MessageDigest.getInstance("SHA-1");
-            pwd = DatatypeConverter.printHexBinary(cript.digest());
-        } catch (final NoSuchAlgorithmException ex) {
-            Logger.getLogger(PasswordGenerator.class.getName()).log(Level.SEVERE, "NoSuchAlgorithmException", ex);
-
-        }
-        return pwd;
-    }
-
-    private PasswordGenerator() {
-        // private constructor for static utility class
-    }
-}