You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ad...@apache.org on 2004/11/08 14:29:30 UTC

svn commit: rev 56924 - geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/jaas

Author: adc
Date: Mon Nov  8 05:29:29 2004
New Revision: 56924

Modified:
   geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/jaas/SerializableACE.java
Log:
Too many ControlFlag arrays
http://nagoya.apache.org/jira/browse/GERONIMO-455

Modified: geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/jaas/SerializableACE.java
==============================================================================
--- geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/jaas/SerializableACE.java	(original)
+++ geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/jaas/SerializableACE.java	Mon Nov  8 05:29:29 2004
@@ -48,35 +48,4 @@
     Map getOptions() {
         return options;
     }
-/*
-    public static final class LoginModuleControlFlag implements Serializable {
-
-        // Be careful here.  If you change the ordinals, this class must be changed on evey client.
-        private static int MAX_ORDINAL = 4;
-        private static final LoginModuleControlFlag[] values = new LoginModuleControlFlag[MAX_ORDINAL + 1];
-        public static final LoginModuleControlFlag REQUIRED = new LoginModuleControlFlag("REQUIRED", 0);
-        public static final LoginModuleControlFlag REQUISITE = new LoginModuleControlFlag("REQUISITE", 1);
-        public static final LoginModuleControlFlag SUFFICIENT = new LoginModuleControlFlag("SUFFICIENT", 2);
-        public static final LoginModuleControlFlag OPTIONAL = new LoginModuleControlFlag("OPTIONAL", 3);
-
-        private final transient String name;
-        private final int ordinal;
-
-        private LoginModuleControlFlag(String name, int ordinal) {
-            assert ordinal <= MAX_ORDINAL;
-            assert values[ordinal] == null;
-            this.name = name;
-            this.ordinal = ordinal;
-            values[ordinal] = this;
-        }
-
-        public String toString() {
-            return name;
-        }
-
-        Object readResolve() throws ObjectStreamException {
-            return values[ordinal];
-        }
-    }
-*/
 }