diff --git a/nucleus/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Cluster.java b/nucleus/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Cluster.java index 02955650bd4..4d5166deeb4 100644 --- a/nucleus/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Cluster.java +++ b/nucleus/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Cluster.java @@ -43,6 +43,7 @@ import com.sun.enterprise.config.serverbeans.customvalidators.*; import com.sun.enterprise.config.util.ConfigApiLoggerInfo; +import com.sun.enterprise.universal.security.SecurityUtils; import com.sun.enterprise.util.LocalStringManagerImpl; import com.sun.enterprise.util.io.FileUtils; import org.glassfish.api.ActionReport; @@ -74,10 +75,8 @@ import jakarta.validation.constraints.Pattern; import java.beans.PropertyVetoException; import java.io.File; -import java.security.SecureRandom; import java.util.ArrayList; import java.util.List; -import java.util.Random; import java.util.logging.Level; import java.util.logging.Logger; diff --git a/nucleus/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/ImportSyncBundleCommand.java b/nucleus/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/ImportSyncBundleCommand.java index 7e0192f3a77..96edce730b4 100644 --- a/nucleus/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/ImportSyncBundleCommand.java +++ b/nucleus/cluster/cli/src/main/java/com/sun/enterprise/admin/cli/cluster/ImportSyncBundleCommand.java @@ -55,14 +55,13 @@ import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; - +import com.sun.enterprise.universal.security.SecurityUtils; import org.jvnet.hk2.annotations.Service; import org.glassfish.api.Param; import org.glassfish.api.admin.*; import static com.sun.enterprise.admin.cli.CLIConstants.*; import com.sun.enterprise.util.io.FileUtils; import java.io.FileInputStream; -import java.security.SecureRandom; import org.glassfish.admin.payload.PayloadImpl; import org.glassfish.admin.payload.PayloadFilesManager.Perm; import org.glassfish.hk2.api.PerLookup; diff --git a/nucleus/common/common-util/src/main/java/com/sun/enterprise/universal/security/SecurityUtils.java b/nucleus/common/common-util/src/main/java/com/sun/enterprise/universal/security/SecurityUtils.java index ffb63d70104..ae1ed5e05fe 100644 --- a/nucleus/common/common-util/src/main/java/com/sun/enterprise/universal/security/SecurityUtils.java +++ b/nucleus/common/common-util/src/main/java/com/sun/enterprise/universal/security/SecurityUtils.java @@ -37,7 +37,7 @@ * only if the new code is made subject to such option by the copyright * holder. */ -// Portions Copyright [2019] Payara Foundation and/or affiliates +// Portions Copyright [2019-2024] Payara Foundation and/or affiliates package com.sun.enterprise.universal.security;