directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r605062 - /directory/apacheds/branches/bigbang/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/flags/AbstractKerberosFlags.java
Date Tue, 18 Dec 2007 01:37:03 GMT
Author: erodriguez
Date: Mon Dec 17 17:37:01 2007
New Revision: 605062

URL: http://svn.apache.org/viewvc?rev=605062&view=rev
Log:
Added a public constant for the maximum size of the BitString for Kerberos flags.  Useful
in conversions to JAAS Tickets.

Modified:
    directory/apacheds/branches/bigbang/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/flags/AbstractKerberosFlags.java

Modified: directory/apacheds/branches/bigbang/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/flags/AbstractKerberosFlags.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/flags/AbstractKerberosFlags.java?rev=605062&r1=605061&r2=605062&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/flags/AbstractKerberosFlags.java
(original)
+++ directory/apacheds/branches/bigbang/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/messages/value/flags/AbstractKerberosFlags.java
Mon Dec 17 17:37:01 2007
@@ -33,6 +33,11 @@
  */
 public abstract class AbstractKerberosFlags extends BitString implements KerberosFlags
 {
+    /**
+     * The maximum size of the BitString as specified for Kerberos flags.
+     */
+    public static final int MAX_SIZE = 32;
+
     /** The associated value */
     protected int value;
     
@@ -42,7 +47,7 @@
      */
     public AbstractKerberosFlags()
     {
-        super( 32 );
+        super( MAX_SIZE );
     }
 
     



Mime
View raw message