Move security model to CMS
[lgpl/argeo-commons.git] / org.argeo.security.core / src / org / argeo / security / SecurityUtils.java
index 8c6715446a96ec78cff35bd0176f3584ffadab69..2d453d3da7c6b02db1355f3cc6021fd3ae21ea24 100644 (file)
@@ -19,7 +19,6 @@ import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.List;
-import java.util.UUID;
 
 import org.springframework.security.authentication.AnonymousAuthenticationToken;
 import org.springframework.security.core.Authentication;
@@ -29,19 +28,9 @@ import org.springframework.security.core.context.SecurityContextHolder;
 
 /** Static utilities */
 public final class SecurityUtils {
-       private final static String systemKey = UUID.randomUUID().toString();
-
        private SecurityUtils() {
        }
 
-       /**
-        * @return a String which is guaranteed to be unique between and constant
-        *         within a Java static context (typically a VM launch)
-        */
-       public final static String getStaticKey() {
-               return systemKey;
-       }
-
        /** Whether the current thread has the admin role */
        public static boolean hasCurrentThreadAuthority(String authority) {
                SecurityContext securityContext = SecurityContextHolder.getContext();