From 03baf2a4c25e28e11b8c0c914ee98dc8c7f31727 Mon Sep 17 00:00:00 2001 From: Avgustin Marinov Date: Fri, 8 Nov 2024 11:36:16 +0200 Subject: [PATCH] Remvoe PermissionUtils class (#1965) Signed-off-by: Avgustin Marinov --- .../im/authentication/PermissionUtils.java | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/PermissionUtils.java diff --git a/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/PermissionUtils.java b/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/PermissionUtils.java deleted file mode 100644 index 7fee17bea..000000000 --- a/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/PermissionUtils.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Copyright (c) 2015 Bosch Software Innovations GmbH and others - * - * This program and the accompanying materials are made - * available under the terms of the Eclipse Public License 2.0 - * which is available at https://www.eclipse.org/legal/epl-2.0/ - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.hawkbit.im.authentication; - -import java.util.List; -import java.util.stream.Collectors; - -import lombok.NoArgsConstructor; -import org.springframework.security.core.GrantedAuthority; -import org.springframework.security.core.authority.SimpleGrantedAuthority; - -/** - * Utility method for creation of GrantedAuthority collections etc. - */ -@NoArgsConstructor(access = lombok.AccessLevel.PRIVATE) -public final class PermissionUtils { - - /** - * Returns all authorities. - * - * @return a list of {@link GrantedAuthority} - */ - public static List createAllAuthorityList() { - return SpPermission.getAllAuthorities().stream().map(SimpleGrantedAuthority::new).collect(Collectors.toList()); - } -} \ No newline at end of file