directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r1037895 [1/2] - in /directory: apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ apacheds/trunk/jdbm/src/main/java/jdbm/ apacheds/trunk/jdbm/src/main/java/jdbm/recman/ apacheds/trunk/protocol-ldap/src/main/...
Date Mon, 22 Nov 2010 21:24:15 GMT
Author: felixk
Date: Mon Nov 22 21:24:13 2010
New Revision: 1037895

URL: http://svn.apache.org/viewvc?rev=1037895&view=rev
Log:
Transform constant interface pattern to class.

Modified:
    directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ApacheSchemaConstants.java
    directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/CoreSchemaConstants.java
    directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ServerDNConstants.java
    directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/SystemSchemaConstants.java
    directory/apacheds/trunk/jdbm/src/main/java/jdbm/RecordManagerOptions.java
    directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/Magic.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolConstants.java
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java
    directory/apacheds/trunk/wrapper/src/main/java/org/apache/directory/server/ExitCodes.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/JndiPropertyConstants.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/MetaSchemaConstants.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/PasswordPolicySchemaConstants.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/SaslQoP.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/SchemaConstants.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/SupportedSaslMechanisms.java

Modified: directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ApacheSchemaConstants.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ApacheSchemaConstants.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ApacheSchemaConstants.java (original)
+++ directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ApacheSchemaConstants.java Mon Nov 22 21:24:13 2010
@@ -22,135 +22,146 @@ package org.apache.directory.server.cons
 
 /**
  * Constants from the Apache schema.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface ApacheSchemaConstants
+public final class ApacheSchemaConstants
 {
-    String SCHEMA_NAME = "apache";
+
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private ApacheSchemaConstants()
+    {
+    }
+
+    public final static String SCHEMA_NAME = "apache";
 
     // ---- ObjectClasses -----------------------------------------------------
     // ApacheCatalogEntry
-    String APACHE_CATALOG_ENTRY_OC                  = "apacheCatalogEntry";
-    String APACHE_CATALOG_ENTRY_OC_OID              = "1.3.6.1.4.1.18060.0.4.1.3.5";
+    public final static String APACHE_CATALOG_ENTRY_OC = "apacheCatalogEntry";
+    public final static String APACHE_CATALOG_ENTRY_OC_OID = "1.3.6.1.4.1.18060.0.4.1.3.5";
 
     // apacheFactoryConfiguration
-    String APACHE_FACTORY_CONFIGURATION_OC          = "apacheFactoryConfiguration";
-    String APACHE_FACTORY_CONFIGURATION_OC_OID      = "1.3.6.1.4.1.18060.0.4.1.3.4";
+    public final static String APACHE_FACTORY_CONFIGURATION_OC = "apacheFactoryConfiguration";
+    public final static String APACHE_FACTORY_CONFIGURATION_OC_OID = "1.3.6.1.4.1.18060.0.4.1.3.4";
 
     // ApacheServiceConfiguration
-    String APACHE_SERVICE_CONFIGURATION_OC          = "apacheServiceConfiguration";
-    String APACHE_SERVICE_CONFIGURATION_OC_OID      = "1.3.6.1.4.1.18060.0.4.1.3.3";
+    public final static String APACHE_SERVICE_CONFIGURATION_OC = "apacheServiceConfiguration";
+    public final static String APACHE_SERVICE_CONFIGURATION_OC_OID = "1.3.6.1.4.1.18060.0.4.1.3.3";
 
     // ApacheSubschema
-    String APACHE_SUBSCHEMA_OC                      = "apacheSubschema";
-    String APACHE_SUBSCHEMA_OC_OID                  = "1.3.6.1.4.1.18060.0.4.1.3.9";
+    public final static String APACHE_SUBSCHEMA_OC = "apacheSubschema";
+    public final static String APACHE_SUBSCHEMA_OC_OID = "1.3.6.1.4.1.18060.0.4.1.3.9";
 
     // JavaClass
-    String JAVA_CLASS_OC                            = "javaClass";
-    String JAVA_CLASS_OC_OID                        = "1.3.6.1.4.1.18060.0.4.1.3.8";
+    public final static String JAVA_CLASS_OC = "javaClass";
+    public final static String JAVA_CLASS_OC_OID = "1.3.6.1.4.1.18060.0.4.1.3.8";
 
     // JavaStoredProcUnit
-    String JAVA_STORED_PROC_UNIT_OC                 = "javaStoredProcUnit";
-    String JAVA_STORED_PROC_UNIT_OC_OID             = "1.3.6.1.4.1.18060.0.4.1.5.5";
+    public final static String JAVA_STORED_PROC_UNIT_OC = "javaStoredProcUnit";
+    public final static String JAVA_STORED_PROC_UNIT_OC_OID = "1.3.6.1.4.1.18060.0.4.1.5.5";
 
     // JavaxScriptStoredProcUnit
-    String JAVAX_SCRIPT_STORED_PROC_UNIT_OC         = "javaxScriptStoredProcUnit";
-    String JAVAX_SCRIPT_STORED_PROC_UNIT_OC_OID     = "1.3.6.1.4.1.18060.0.4.1.5.8";
+    public final static String JAVAX_SCRIPT_STORED_PROC_UNIT_OC = "javaxScriptStoredProcUnit";
+    public final static String JAVAX_SCRIPT_STORED_PROC_UNIT_OC_OID = "1.3.6.1.4.1.18060.0.4.1.5.8";
 
     // PrefNode
-    String PREF_NODE_OC                             = "prefNode";
-    String PREF_NODE_OC_OID                         = "1.3.6.1.4.1.18060.0.4.1.3.1";
+    public final static String PREF_NODE_OC = "prefNode";
+    public final static String PREF_NODE_OC_OID = "1.3.6.1.4.1.18060.0.4.1.3.1";
 
     // SchemaModificationAttributes
-    String SCHEMA_MODIFICATION_ATTRIBUTES_OC        = "schemaModificationAttributes";
-    String SCHEMA_MODIFICATION_ATTRIBUTES_OC_OID    = "1.3.6.1.4.1.18060.0.4.1.3.10";
+    public final static String SCHEMA_MODIFICATION_ATTRIBUTES_OC = "schemaModificationAttributes";
+    public final static String SCHEMA_MODIFICATION_ATTRIBUTES_OC_OID = "1.3.6.1.4.1.18060.0.4.1.3.10";
 
     // StoredProcUnit
-    String STORED_PROC_UNIT_OC                      = "storedProcUnit";
-    String STORED_PROC_UNIT_OC_OID                  = "1.3.6.1.4.1.18060.0.4.1.5.3";
+    public final static String STORED_PROC_UNIT_OC = "storedProcUnit";
+    public final static String STORED_PROC_UNIT_OC_OID = "1.3.6.1.4.1.18060.0.4.1.5.3";
 
     // TriggerExecutionSubentry
-    String TRIGGER_EXECUTION_SUBENTRY_OC            = "triggerExecutionSubentry";
-    String TRIGGER_EXECUTION_SUBENTRY_OC_OID        = "1.3.6.1.4.1.18060.0.4.1.2.28";
+    public final static String TRIGGER_EXECUTION_SUBENTRY_OC = "triggerExecutionSubentry";
+    public final static String TRIGGER_EXECUTION_SUBENTRY_OC_OID = "1.3.6.1.4.1.18060.0.4.1.2.28";
 
     // UnixFile
-    String UNIX_FILE_OC                             = "unixFile";
-    String UNIX_FILE_OC_OID                         = "1.3.6.1.4.1.18060.0.4.1.3.7";
+    public final static String UNIX_FILE_OC = "unixFile";
+    public final static String UNIX_FILE_OC_OID = "1.3.6.1.4.1.18060.0.4.1.3.7";
 
     // WindowsFile
-    String WINDOWS_FILE_OC                          = "windowsFile";
-    String WINDOWS_FILE_OC_OID                      = "1.3.6.1.4.1.18060.0.4.1.3.6";
+    public final static String WINDOWS_FILE_OC = "windowsFile";
+    public final static String WINDOWS_FILE_OC_OID = "1.3.6.1.4.1.18060.0.4.1.3.6";
 
     // ---- AttributeType ----------------------------------------------------------
     // ApacheNdn
-    String APACHE_N_DN_AT                           = "apacheNdn";
-    String APACHE_N_DN_AT_OID                       = "1.3.6.1.4.1.18060.0.4.1.2.1";
-    
+    public final static String APACHE_N_DN_AT = "apacheNdn";
+    public final static String APACHE_N_DN_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.1";
+
     // ApacheUpdn
-    String APACHE_UP_DN_AT                          = "apacheUpdn";
-    String APACHE_UP_DN_AT_OID                      = "1.3.6.1.4.1.18060.0.4.1.2.2";
-    
+    public final static String APACHE_UP_DN_AT = "apacheUpdn";
+    public final static String APACHE_UP_DN_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.2";
+
     // ApacheExistence
-    String APACHE_EXISTENCE_AT                      = "apacheExistence";
-    String APACHE_EXISTENCE_AT_OID                  = "1.3.6.1.4.1.18060.0.4.1.2.3";
-    
+    public final static String APACHE_EXISTENCE_AT = "apacheExistence";
+    public final static String APACHE_EXISTENCE_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.3";
+
     // ApacheOneLevel
-    String APACHE_ONE_LEVEL_AT                      = "apacheOneLevel";
-    String APACHE_ONE_LEVEL_AT_OID                  = "1.3.6.1.4.1.18060.0.4.1.2.4";
-    
+    public final static String APACHE_ONE_LEVEL_AT = "apacheOneLevel";
+    public final static String APACHE_ONE_LEVEL_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.4";
+
     // ApacheOneAlias
-    String APACHE_ONE_ALIAS_AT                      = "apacheOneAlias";
-    String APACHE_ONE_ALIAS_AT_OID                  = "1.3.6.1.4.1.18060.0.4.1.2.5";
-    
+    public final static String APACHE_ONE_ALIAS_AT = "apacheOneAlias";
+    public final static String APACHE_ONE_ALIAS_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.5";
+
     // ApacheSubAlias
-    String APACHE_SUB_ALIAS_AT                      = "apacheSubAlias";
-    String APACHE_SUB_ALIAS_AT_OID                  = "1.3.6.1.4.1.18060.0.4.1.2.6";
+    public final static String APACHE_SUB_ALIAS_AT = "apacheSubAlias";
+    public final static String APACHE_SUB_ALIAS_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.6";
 
     // ApacheAlias
-    String APACHE_ALIAS_AT                          = "apacheAlias";
-    String APACHE_ALIAS_AT_OID                      = "1.3.6.1.4.1.18060.0.4.1.2.7";
+    public final static String APACHE_ALIAS_AT = "apacheAlias";
+    public final static String APACHE_ALIAS_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.7";
 
     // PrefNodeName
-    String PREF_NODE_NAME_AT                        = "prefNodeName";
-    String PREF_NODE_NAME_AT_OID                    = "1.3.6.1.4.1.18060.0.4.1.2.8";
-    
+    public final static String PREF_NODE_NAME_AT = "prefNodeName";
+    public final static String PREF_NODE_NAME_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.8";
+
     // CatalogEntryName
-    String APACHE_CATALOGUE_ENTRY_NAME_AT           = "apacheCatalogEntryName";
-    String APACHE_CATALOGUE_ENTRY_NAME_AT_OID       = "1.3.6.1.4.1.18060.0.4.1.2.17";
-    
-    String APACHE_CATALOGUE_ENTRY_BASE_DN_AT        = "apacheCatalogEntryBaseDn";
-    String APACHE_CATALOGUE_ENTRY_BASE_DN_AT_OID    = "1.3.6.1.4.1.18060.0.4.1.2.18";
+    public final static String APACHE_CATALOGUE_ENTRY_NAME_AT = "apacheCatalogEntryName";
+    public final static String APACHE_CATALOGUE_ENTRY_NAME_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.17";
+
+    public final static String APACHE_CATALOGUE_ENTRY_BASE_DN_AT = "apacheCatalogEntryBaseDn";
+    public final static String APACHE_CATALOGUE_ENTRY_BASE_DN_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.18";
 
     // WindowsFilePath
-    String WINDOWS_FILE_AT                          = "windowsFilePath";
-    String WINDOWS_FILE_AT_OID                      = "1.3.6.1.4.1.18060.0.4.1.2.19";
+    public final static String WINDOWS_FILE_AT = "windowsFilePath";
+    public final static String WINDOWS_FILE_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.19";
 
     // WindowsFilePath
-    String UNIX_FILE_AT                             = "unixFilePath";
-    String UNIX_FILE_AT_OID                         = "1.3.6.1.4.1.18060.0.4.1.2.20";
+    public final static String UNIX_FILE_AT = "unixFilePath";
+    public final static String UNIX_FILE_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.20";
 
     // entryDeleted
-    String ENTRY_DELETED_AT                         = "entryDeleted";
-    String ENTRY_DELETED_AT_OID                     = "1.3.6.1.4.1.18060.0.4.1.2.31";
-    
+    public final static String ENTRY_DELETED_AT = "entryDeleted";
+    public final static String ENTRY_DELETED_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.31";
+
     // SchemaModifyTimestamp
-    String SCHEMA_MODIFY_TIMESTAMP_AT               = "schemaModifyTimestamp";
-    String SCHEMA_MODIFY_TIMESTAMP_AT_OID           = "1.3.6.1.4.1.18060.0.4.1.2.35";
+    public final static String SCHEMA_MODIFY_TIMESTAMP_AT = "schemaModifyTimestamp";
+    public final static String SCHEMA_MODIFY_TIMESTAMP_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.35";
 
     // SchemaModifiersName
-    String SCHEMA_MODIFIERS_NAME_AT                 = "schemaModifiersName";
-    String SCHEMA_MODIFIERS_NAME_AT_OID             = "1.3.6.1.4.1.18060.0.4.1.2.36";
-    
+    public final static String SCHEMA_MODIFIERS_NAME_AT = "schemaModifiersName";
+    public final static String SCHEMA_MODIFIERS_NAME_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.36";
+
     // SubschemaSubentryName
-    String SUBSCHEMA_SUBENTRY_NAME_AT               = "subschemaSubentryName";
-    String SUBSCHEMA_SUBENTRY_NAME_AT_OID           = "1.3.6.1.4.1.18060.0.4.1.2.37";
-    
+    public final static String SUBSCHEMA_SUBENTRY_NAME_AT = "subschemaSubentryName";
+    public final static String SUBSCHEMA_SUBENTRY_NAME_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.37";
+
     // apacheSubLevel
-    String APACHE_SUB_LEVEL_AT                      = "apacheSubLevel";
-    String APACHE_SUB_LEVEL_AT_OID                  = "1.3.6.1.4.1.18060.0.4.1.2.43";
+    public final static String APACHE_SUB_LEVEL_AT = "apacheSubLevel";
+    public final static String APACHE_SUB_LEVEL_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.43";
 
     // apacheRdn
-    String APACHE_RDN_AT                      = "apacheRdn";
-    String APACHE_RDN_AT_OID                  = "1.3.6.1.4.1.18060.0.4.1.2.50";
+    public final static String APACHE_RDN_AT = "apacheRdn";
+    public final static String APACHE_RDN_AT_OID = "1.3.6.1.4.1.18060.0.4.1.2.50";
 }

Modified: directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/CoreSchemaConstants.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/CoreSchemaConstants.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/CoreSchemaConstants.java (original)
+++ directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/CoreSchemaConstants.java Mon Nov 22 21:24:13 2010
@@ -20,12 +20,23 @@
 
 package org.apache.directory.server.constants;
 
+
 /**
  * Core schema constants used throughout the server.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface CoreSchemaConstants
+public final class CoreSchemaConstants
 {
-    String SCHEMA_NAME = "core";
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private CoreSchemaConstants()
+    {
+    }
+
+    public final static String SCHEMA_NAME = "core";
 }

Modified: directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ServerDNConstants.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ServerDNConstants.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ServerDNConstants.java (original)
+++ directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/ServerDNConstants.java Mon Nov 22 21:24:13 2010
@@ -19,55 +19,64 @@
  */
 package org.apache.directory.server.constants;
 
+
 /**
  * DN constants used in the server.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface ServerDNConstants
+public final class ServerDNConstants
 {
-    
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private ServerDNConstants()
+    {
+    }
+
     /** The administrators group DN */
-    public static final String ADMINISTRATORS_GROUP_DN      = "cn=Administrators,ou=groups,ou=system";
+    public static final String ADMINISTRATORS_GROUP_DN = "cn=Administrators,ou=groups,ou=system";
 
     /** The system DN */
-    public static final String SYSTEM_DN                    = "ou=system";
-    
+    public static final String SYSTEM_DN = "ou=system";
+
     /** the default user principal or DN */
-    public static final String ADMIN_SYSTEM_DN              = "uid=admin,ou=system";
-    
+    public static final String ADMIN_SYSTEM_DN = "uid=admin,ou=system";
+
     /** the normalized user principal or DN */
-    public static final String ADMIN_SYSTEM_DN_NORMALIZED   = "0.9.2342.19200300.100.1.1=admin,2.5.4.11=system";
+    public static final String ADMIN_SYSTEM_DN_NORMALIZED = "0.9.2342.19200300.100.1.1=admin,2.5.4.11=system";
 
     /** the DN for the global schema subentry */
-    public static final String CN_SCHEMA_DN                 = "cn=schema";
-    
+    public static final String CN_SCHEMA_DN = "cn=schema";
+
     /** The DN for the gloval schema subentry normalized */
-    public static final String CN_SCHEMA_DN_NORMALIZED      = "2.5.4.3=schema";
-   
+    public static final String CN_SCHEMA_DN_NORMALIZED = "2.5.4.3=schema";
+
     /** the DN for the schema in dit area */
     //public static final String OU_SCHEMA_DN                 = "ou=schema";
 
     /** the normalized DN for the schema in DIT area */
     //public static final String OU_SCHEMA_DN_NORMALIZED      = "2.5.4.11=schema";
-    
+
     /** The DN for the schema modifications */
-    public static final String SCHEMA_MODIFICATIONS_DN      = "cn=schemaModifications,ou=schema";
-    
+    public static final String SCHEMA_MODIFICATIONS_DN = "cn=schemaModifications,ou=schema";
+
     /** the base dn under which all users reside */
-    public static final String USERS_SYSTEM_DN              = "ou=users,ou=system";
-    
+    public static final String USERS_SYSTEM_DN = "ou=users,ou=system";
+
     /** The default change password base DN. */
-    public static final String USER_EXAMPLE_COM_DN          = "ou=users,dc=example,dc=com";
-    
-    
+    public static final String USER_EXAMPLE_COM_DN = "ou=users,dc=example,dc=com";
+
     /** the base dn under which all groups reside */
-    public static final String GROUPS_SYSTEM_DN             = "ou=groups,ou=system";
-    
+    public static final String GROUPS_SYSTEM_DN = "ou=groups,ou=system";
+
     /** the dn base of the system preference hierarchy */
-    public static final String SYSPREFROOT_SYSTEM_DN        = "prefNodeName=sysPrefRoot,ou=system";
-    
+    public static final String SYSPREFROOT_SYSTEM_DN = "prefNodeName=sysPrefRoot,ou=system";
+
     /** The ldifDile base which stores the name of the loaded ldif files */
-    public static final String LDIF_FILES_DN                = "ou=loadedLdifFiles,ou=configuration,ou=system";
+    public static final String LDIF_FILES_DN = "ou=loadedLdifFiles,ou=configuration,ou=system";
 
 }

Modified: directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/SystemSchemaConstants.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/SystemSchemaConstants.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/SystemSchemaConstants.java (original)
+++ directory/apacheds/trunk/core-constants/src/main/java/org/apache/directory/server/constants/SystemSchemaConstants.java Mon Nov 22 21:24:13 2010
@@ -22,10 +22,20 @@ package org.apache.directory.server.cons
 
 /**
  * Constants for the System schema.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface SystemSchemaConstants
+public class SystemSchemaConstants
 {
-    String SCHEMA_NAME = "system";
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private SystemSchemaConstants()
+    {
+    }
+
+    public final static String SCHEMA_NAME = "system";
 }

Modified: directory/apacheds/trunk/jdbm/src/main/java/jdbm/RecordManagerOptions.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/main/java/jdbm/RecordManagerOptions.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/main/java/jdbm/RecordManagerOptions.java (original)
+++ directory/apacheds/trunk/jdbm/src/main/java/jdbm/RecordManagerOptions.java Mon Nov 22 21:24:13 2010
@@ -50,41 +50,51 @@ package jdbm;
 
 /**
  * Standard options for RecordManager.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:boisvert@intalio.com">Alex Boisvert</a>
  * @author <a href="cg@cdegroot.com">Cees de Groot</a>
  */
-public interface RecordManagerOptions
+public final class RecordManagerOptions
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private RecordManagerOptions()
+    {
+    }
+
     /** Option to create a thread-safe record manager. */
-    String PROVIDER_FACTORY = "jdbm.provider";
+    public final static String PROVIDER_FACTORY = "jdbm.provider";
 
 
     /** Option to create a thread-safe record manager. */
-    String THREAD_SAFE = "jdbm.threadSafe";
+    public final static String THREAD_SAFE = "jdbm.threadSafe";
 
 
     /** Option to automatically commit data after each operation. */
-    String AUTO_COMMIT = "jdbm.autoCommit";
+    public final static String AUTO_COMMIT = "jdbm.autoCommit";
 
 
     /**
      * Option to disable transaction (to increase performance at the cost of
      * potential data loss).
      */
-    String DISABLE_TRANSACTIONS = "jdbm.disableTransactions";
+    public final static String DISABLE_TRANSACTIONS = "jdbm.disableTransactions";
 
 
     /** Cache type. */
-    String CACHE_TYPE = "jdbm.cache.type";
+    public final static String CACHE_TYPE = "jdbm.cache.type";
 
 
     /** Cache size (when applicable) */
-    String CACHE_SIZE = "jdbm.cache.size";
+    public final static String CACHE_SIZE = "jdbm.cache.size";
 
 
     /** Use normal (strong) object references for the record cache. */
-    String NORMAL_CACHE = "normal";
+    public final static String NORMAL_CACHE = "normal";
 
 
     /**
@@ -94,7 +104,7 @@ public interface RecordManagerOptions
      * Soft references are cleared at the discretion of the garbage collector
      * in response to memory demand.
      */
-    String SOFT_REF_CACHE = "soft";
+    public final static String SOFT_REF_CACHE = "soft";
 
 
     /**
@@ -104,5 +114,5 @@ public interface RecordManagerOptions
      * Weak references do not prevent their referents from being made
      * finalizable, finalized, and then reclaimed.
      */
-    String WEAK_REF_CACHE = "weak";
+    public final static String WEAK_REF_CACHE = "weak";
 }

Modified: directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/Magic.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/Magic.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/Magic.java (original)
+++ directory/apacheds/trunk/jdbm/src/main/java/jdbm/recman/Magic.java Mon Nov 22 21:24:13 2010
@@ -49,40 +49,51 @@ package jdbm.recman;
 
 /**
  * This interface contains magic cookies.
+ * Final reference -> class shouldn't be extended
  */
-public interface Magic 
+public final class Magic 
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private Magic()
+    {
+    }
+
+    
     /** Magic cookie at start of file */
-    short FILE_HEADER = 0x1350;
+    public final static short FILE_HEADER = 0x1350;
 
     /** Magic for blocks. They're offset by the block type magic codes. */
-    short BLOCK = 0x1351;
+    public final static short BLOCK = 0x1351;
 
     /** Magics for block types in certain lists. Offset by baseBlockMagic */
-    short FREE_PAGE = 0;
-    short USED_PAGE = 1;
-    short TRANSLATION_PAGE = 2;
-    short FREELOGIDS_PAGE = 3;
-    short FREEPHYSIDS_PAGE = 4;
+    public final static short FREE_PAGE = 0;
+    public final static short USED_PAGE = 1;
+    public final static short TRANSLATION_PAGE = 2;
+    public final static short FREELOGIDS_PAGE = 3;
+    public final static short FREEPHYSIDS_PAGE = 4;
 
     /** Number of lists in a file */
-    public short NLISTS = 5;
+    public final static short NLISTS = 5;
 
     /**
      *  Maximum number of blocks in a file, leaving room for a 16 bit
      *  offset encoded within a long.
      */
-    long MAX_BLOCKS = 0x7FFFFFFFFFFFL;
+    public final static long MAX_BLOCKS = 0x7FFFFFFFFFFFL;
 
     /** Magic for transaction file */
-    short LOGFILE_HEADER = 0x1360;
+    public final static short LOGFILE_HEADER = 0x1360;
 
     /** Size of an externalized byte */
-    short SZ_BYTE = 1;
+    public final static short SZ_BYTE = 1;
     /** Size of an externalized short */
-    short SZ_SHORT = 2;
+    public final static short SZ_SHORT = 2;
     /** Size of an externalized int */
-    short SZ_INT = 4;
+    public final static short SZ_INT = 4;
     /** Size of an externalized long */
-    short SZ_LONG = 8;
+    public final static short SZ_LONG = 8;
 }

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolConstants.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolConstants.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolConstants.java (original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolConstants.java Mon Nov 22 21:24:13 2010
@@ -25,12 +25,22 @@ import org.apache.directory.shared.ldap.
 
 /**
  * Constants for LDAP protocol service.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface LdapProtocolConstants
+public final class LdapProtocolConstants
 {
-    Control[] EMPTY_CONTROLS = new Control[0];
-    String OUTSTANDING_KEY = "outstandingRequestsKey";
-    String CORE_SESSION_KEY = "coreSessionKey";
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private LdapProtocolConstants()
+    {
+    }
+
+    public final static Control[] EMPTY_CONTROLS = new Control[0];
+    public final static String OUTSTANDING_KEY = "outstandingRequestsKey";
+    public final static String CORE_SESSION_KEY = "coreSessionKey";
 }

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java (original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapProtocolUtils.java Mon Nov 22 21:24:13 2010
@@ -24,13 +24,12 @@ import org.apache.directory.server.core.
 import org.apache.directory.shared.ldap.message.Request;
 import org.apache.directory.shared.ldap.message.Response;
 
-
 /**
  * Utility methods used by the LDAP protocol service.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class LdapProtocolUtils implements LdapProtocolConstants
+public class LdapProtocolUtils
 {
     /**
      * Extracts request controls from a request to populate into an
@@ -43,7 +42,7 @@ public class LdapProtocolUtils implement
     {
         if ( request.getControls() != null )
         {
-            request.addAllControls( request.getControls().values().toArray( EMPTY_CONTROLS ) );
+            request.addAllControls( request.getControls().values().toArray( LdapProtocolConstants.EMPTY_CONTROLS ) );
         }
     }
 

Modified: directory/apacheds/trunk/wrapper/src/main/java/org/apache/directory/server/ExitCodes.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/wrapper/src/main/java/org/apache/directory/server/ExitCodes.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/apacheds/trunk/wrapper/src/main/java/org/apache/directory/server/ExitCodes.java (original)
+++ directory/apacheds/trunk/wrapper/src/main/java/org/apache/directory/server/ExitCodes.java Mon Nov 22 21:24:13 2010
@@ -22,22 +22,32 @@ package org.apache.directory.server;
 
 /**
  * Exit codes for the bootstrappers.
+ * Final reference -> class shouldn't be extended
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface ExitCodes
+public final class ExitCodes
 {
-    int CLASS_LOOKUP = 1;
-    int INSTANTIATION = 2;
-    int METHOD_LOOKUP = 3;
-    int INITIALIZATION = 4;
-    int START = 5;
-    int STOP = 6;
-    int PROPLOAD = 7;
-    int VERIFICATION = 8;
-    int DESTROY = 9;
-    int BAD_ARGUMENTS = 10;
-    int BAD_COMMAND = 11;
-    int UNKNOWN = 12;
-    int INVOCATION = 13;
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private ExitCodes()
+    {
+    }
+
+    public final static int CLASS_LOOKUP = 1;
+    public final static int INSTANTIATION = 2;
+    public final static int METHOD_LOOKUP = 3;
+    public final static int INITIALIZATION = 4;
+    public final static int START = 5;
+    public final static int STOP = 6;
+    public final static int PROPLOAD = 7;
+    public final static int VERIFICATION = 8;
+    public final static int DESTROY = 9;
+    public final static int BAD_ARGUMENTS = 10;
+    public final static int BAD_COMMAND = 11;
+    public final static int UNKNOWN = 12;
+    public final static int INVOCATION = 13;
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/JndiPropertyConstants.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/JndiPropertyConstants.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/JndiPropertyConstants.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/JndiPropertyConstants.java Mon Nov 22 21:24:13 2010
@@ -24,113 +24,123 @@ package org.apache.directory.shared.ldap
 /**
  * This class contains all the Ldap specific properties described in the JNDI API.
  * See http://java.sun.com/j2se/1.5.0/docs/guide/jndi/jndi-ldap-gl.html
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface JndiPropertyConstants
+public final class JndiPropertyConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private JndiPropertyConstants()
+    {
+    }
+
     // Pure JNDI properties
     /** Batch size of search results returned */
-    String JNDI_BATCHSIZE = "java.naming.batchsize";
+    public final static String JNDI_BATCHSIZE = "java.naming.batchsize";
 
     /** List of FQCNs of the control factory classes */
-    String JNDI_FACTORY_CONTROL = "java.naming.factory.control";
+    public final static String JNDI_FACTORY_CONTROL = "java.naming.factory.control";
 
     /** FQCN of the factory creating the InitialContext */
-    String JNDI_FACTORY_INITIAL = "java.naming.factory.initial";
+    public final static String JNDI_FACTORY_INITIAL = "java.naming.factory.initial";
 
     /** List of FQCNs of the Object factory */
-    String JNDI_FACTORY_OBJECT = "java.naming.factory.object";
+    public final static String JNDI_FACTORY_OBJECT = "java.naming.factory.object";
 
     /** List of FQCNs of the state factory */
-    String JNDI_FACTORY_STATE = "java.naming.factory.state";
+    public final static String JNDI_FACTORY_STATE = "java.naming.factory.state";
 
     /** The Language to use */
-    String JNDI_LANGUAGE = "java.naming.language";
+    public final static String JNDI_LANGUAGE = "java.naming.language";
 
     /** The list of URL pointing to a LDAP server */
-    String JNDI_PROVIDER_URL = "java.naming.provider.url";
+    public final static String JNDI_PROVIDER_URL = "java.naming.provider.url";
 
     /** Tells how the referral should be handled */
-    String JNDI_REFERRAL = "java.naming.referral";
+    public final static String JNDI_REFERRAL = "java.naming.referral";
 
     /** The Authentication mechanism */
-    String JNDI_SECURITY_AUTHENTICATION = "java.naming.security.authentication";
+    public final static String JNDI_SECURITY_AUTHENTICATION = "java.naming.security.authentication";
 
     /** The credentials */
-    String JNDI_SECURITY_CREDENTIALS = "java.naming.security.credentials";
+    public final static String JNDI_SECURITY_CREDENTIALS = "java.naming.security.credentials";
 
     /** The Principal */
-    String JNDI_SECURITY_PRINCIPAL = "java.naming.security.principal";
+    public final static String JNDI_SECURITY_PRINCIPAL = "java.naming.security.principal";
 
     /** The security protocol to use */
-    String JNDI_SECURITY_PROTOCOL = "java.naming.security.protocol";
+    public final static String JNDI_SECURITY_PROTOCOL = "java.naming.security.protocol";
 
     // Ldap specific properties
     /** The list of binary attributes */
-    String JNDI_LDAP_ATTRIBUTES_BINARY = "java.naming.ldap.attributes.binary";
+    public final static String JNDI_LDAP_ATTRIBUTES_BINARY = "java.naming.ldap.attributes.binary";
 
     /** The controls to send when connectiong */
-    String JNDI_LDAP_CONTROL_CONNECT = "java.naming.ldap.control.connect";
+    public final static String JNDI_LDAP_CONTROL_CONNECT = "java.naming.ldap.control.connect";
 
     /** Tells if the old RDN must be deleted when doing a MODDN */
-    String JNDI_LDAP_DELETE_RDN = "java.naming.ldap.deleteRDN";
+    public final static String JNDI_LDAP_DELETE_RDN = "java.naming.ldap.deleteRDN";
 
     /** Tells if and how we dereference aliases */
-    String JNDI_LDAP_DAP_DEREF_ALIASES = "java.naming.ldap.derefAliases";
+    public final static String JNDI_LDAP_DAP_DEREF_ALIASES = "java.naming.ldap.derefAliases";
 
     /** The FQCN of the socket factory to use to connect to the server */
-    String JNDI_FACTORY_SOCKET = "java.naming.ldap.factory.socket";
+    public final static String JNDI_FACTORY_SOCKET = "java.naming.ldap.factory.socket";
 
     /** The separator to use when dealing with RefAddr */
-    String JNDI_LDAP_REF_SEPARATOR = "java.naming.ldap.ref.separator";
+    public final static String JNDI_LDAP_REF_SEPARATOR = "java.naming.ldap.ref.separator";
 
     /** The maximum number of referral to follow in a chain of referrals */
-    String JNDI_LDAP_REFERRAL_LIMIT = "java.naming.ldap.referral.limit";
+    public final static String JNDI_LDAP_REFERRAL_LIMIT = "java.naming.ldap.referral.limit";
 
     /** tells that we want the attributeTypes only to be returned */
-    String JNDI_LDAP_TYPES_ONLY = "java.naming.ldap.typesOnly";
+    public final static String JNDI_LDAP_TYPES_ONLY = "java.naming.ldap.typesOnly";
 
     /** Specifies the LDAP version to use */
-    String JNDI_LDAP_VERSION = "java.naming.ldap.version";
+    public final static String JNDI_LDAP_VERSION = "java.naming.ldap.version";
 
     // SASL properties
     /** The SASL authorization ID */
-    String JNDI_SASL_AUTHORIZATION_ID = "java.naming.security.sasl.authorizationId";
+    public final static String JNDI_SASL_AUTHORIZATION_ID = "java.naming.security.sasl.authorizationId";
 
     /** The SASL Realm */
-    String JNDI_SASL_REALM = "java.naming.security.sasl.realm";
+    public final static String JNDI_SASL_REALM = "java.naming.security.sasl.realm";
 
     /** An instance of CallbackHandler to use when required */
-    String JNDI_SASL_CALLBACK = "java.naming.security.sasl.callback";
+    public final static String JNDI_SASL_CALLBACK = "java.naming.security.sasl.callback";
 
     /** The SASL Quality Of Protection value */
-    String JNDI_SASL_QOP = "javax.security.sasl.qop";
+    public final static String JNDI_SASL_QOP = "javax.security.sasl.qop";
 
     /** The cipher strength */
-    String JNDI_SASL_STRENGTH = "javax.security.sasl.strength";
+    public final static String JNDI_SASL_STRENGTH = "javax.security.sasl.strength";
 
     /** The maximum size of the receive buffer */
-    String JNDI_SASL_MAX_BUFFER = "javax.security.sasl.maxbuffer";
+    public final static String JNDI_SASL_MAX_BUFFER = "javax.security.sasl.maxbuffer";
 
     /** Tells if the the server must authenticate the client */
-    String JNDI_SASL_AUTHENTICATION = "javax.security.sasl.server.authentication";
+    public final static String JNDI_SASL_AUTHENTICATION = "javax.security.sasl.server.authentication";
 
     /** Tells if the server must support forward secrecy */
-    String JNDI_SASL_POLICY_FORWARD = "javax.security.sasl.policy.forward";
+    public final static String JNDI_SASL_POLICY_FORWARD = "javax.security.sasl.policy.forward";
 
     /** Tells if the server must require some credentials */
-    String JNDI_SASL_POLICY_CREDENTIALS = "javax.security.sasl.policy.credentials";
+    public final static String JNDI_SASL_POLICY_CREDENTIALS = "javax.security.sasl.policy.credentials";
 
     /** Tells if the server allow Plain text mechanism */
-    String JNDI_SASL_POLICY_NO_PLAIN_TEXT = "javax.security.sasl.policy.noplaintext";
+    public final static String JNDI_SASL_POLICY_NO_PLAIN_TEXT = "javax.security.sasl.policy.noplaintext";
 
     /** Tells if the SASL mechanism is protected against active attacks */
-    String JNDI_SASL_POLICY_NO_ACTIVE = "javax.security.sasl.policy.noactive";
+    public final static String JNDI_SASL_POLICY_NO_ACTIVE = "javax.security.sasl.policy.noactive";
 
     /** Tells if the SASL mechanism is protected against dictionary attacks */
-    String JNDI_SASL_POLICY_NO_DICTIONARY = "javax.security.sasl.policy.nodictionary";
+    public final static String JNDI_SASL_POLICY_NO_DICTIONARY = "javax.security.sasl.policy.nodictionary";
 
     /** Tells if the SASL mechanism accept or not anonymous connections */
-    String JNDI_SASL_POLICY_NO_ANONYMOUS = "javax.security.sasl.policy.noanonymous";
+    public final static String JNDI_SASL_POLICY_NO_ANONYMOUS = "javax.security.sasl.policy.noanonymous";
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/MetaSchemaConstants.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/MetaSchemaConstants.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/MetaSchemaConstants.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/MetaSchemaConstants.java Mon Nov 22 21:24:13 2010
@@ -22,154 +22,164 @@ package org.apache.directory.shared.ldap
 
 /**
  * Apache meta schema specific constants used throughout the server.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 //This will suppress PMD.AvoidUsingHardCodedIP warnings in this class
 @SuppressWarnings("PMD.AvoidUsingHardCodedIP")
-public interface MetaSchemaConstants
+public final class MetaSchemaConstants
 {
-    String SCHEMA_NAME = "apachemeta";
-    String SCHEMA_OTHER = "other";
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private MetaSchemaConstants()
+    {
+    }
+
+    public final static String SCHEMA_NAME = "apachemeta";
+    public final static String SCHEMA_OTHER = "other";
 
     // -- objectClass names --
-    String META_TOP_OC                      = "metaTop";
-    String META_TOP_OC_OID                  = "1.3.6.1.4.1.18060.0.4.0.3.1";
+    public final static String META_TOP_OC                      = "metaTop";
+    public final static String META_TOP_OC_OID                  = "1.3.6.1.4.1.18060.0.4.0.3.1";
     
-    String META_OBJECT_CLASS_OC             = "metaObjectClass";
-    String META_OBJECT_CLASS_OC_OID         = "1.3.6.1.4.1.18060.0.4.0.3.2";
+    public final static String META_OBJECT_CLASS_OC             = "metaObjectClass";
+    public final static String META_OBJECT_CLASS_OC_OID         = "1.3.6.1.4.1.18060.0.4.0.3.2";
     
-    String META_ATTRIBUTE_TYPE_OC           = "metaAttributeType";
-    String META_ATTRIBUTE_TYPE_OC_OID       = "1.3.6.1.4.1.18060.0.4.0.3.3";
+    public final static String META_ATTRIBUTE_TYPE_OC           = "metaAttributeType";
+    public final static String META_ATTRIBUTE_TYPE_OC_OID       = "1.3.6.1.4.1.18060.0.4.0.3.3";
     
-    String META_SYNTAX_OC                   = "metaSyntax";
-    String META_SYNTAX_OC_OID               = "1.3.6.1.4.1.18060.0.4.0.3.4";
+    public final static String META_SYNTAX_OC                   = "metaSyntax";
+    public final static String META_SYNTAX_OC_OID               = "1.3.6.1.4.1.18060.0.4.0.3.4";
 
-    String META_MATCHING_RULE_OC            = "metaMatchingRule";
-    String META_MATCHING_RULE_OC_OID        = "1.3.6.1.4.1.18060.0.4.0.3.5";
+    public final static String META_MATCHING_RULE_OC            = "metaMatchingRule";
+    public final static String META_MATCHING_RULE_OC_OID        = "1.3.6.1.4.1.18060.0.4.0.3.5";
     
-    String META_DIT_STRUCTURE_RULE_OC       = "metaDITStructureRule";
-    String META_DIT_STRUCTURE_RULE_OC_OID   = "1.3.6.1.4.1.18060.0.4.0.3.6";
+    public final static String META_DIT_STRUCTURE_RULE_OC       = "metaDITStructureRule";
+    public final static String META_DIT_STRUCTURE_RULE_OC_OID   = "1.3.6.1.4.1.18060.0.4.0.3.6";
     
-    String META_NAME_FORM_OC                = "metaNameForm";
-    String META_NAME_FORM_OC_OID            = "1.3.6.1.4.1.18060.0.4.0.3.7";
+    public final static String META_NAME_FORM_OC                = "metaNameForm";
+    public final static String META_NAME_FORM_OC_OID            = "1.3.6.1.4.1.18060.0.4.0.3.7";
 
-    String META_MATCHING_RULE_USE_OC        = "metaMatchingRuleUse";
-    String META_MATCHING_RULE_USE_OC_OID    = "1.3.6.1.4.1.18060.0.4.0.3.8";
+    public final static String META_MATCHING_RULE_USE_OC        = "metaMatchingRuleUse";
+    public final static String META_MATCHING_RULE_USE_OC_OID    = "1.3.6.1.4.1.18060.0.4.0.3.8";
 
-    String META_DIT_CONTENT_RULE_OC         = "metaDITContentRule";
-    String META_DIT_CONTENT_RULE_OC_OID     = "1.3.6.1.4.1.18060.0.4.0.3.9";
+    public final static String META_DIT_CONTENT_RULE_OC         = "metaDITContentRule";
+    public final static String META_DIT_CONTENT_RULE_OC_OID     = "1.3.6.1.4.1.18060.0.4.0.3.9";
     
-    String META_SYNTAX_CHECKER_OC           = "metaSyntaxChecker";
-    String META_SYNTAX_CHECKER_OC_OID       = "1.3.6.1.4.1.18060.0.4.0.3.10";
+    public final static String META_SYNTAX_CHECKER_OC           = "metaSyntaxChecker";
+    public final static String META_SYNTAX_CHECKER_OC_OID       = "1.3.6.1.4.1.18060.0.4.0.3.10";
     
-    String META_SCHEMA_OC                   = "metaSchema";
-    String META_SCHEMA_OC_OID               = "1.3.6.1.4.1.18060.0.4.0.3.11";
+    public final static String META_SCHEMA_OC                   = "metaSchema";
+    public final static String META_SCHEMA_OC_OID               = "1.3.6.1.4.1.18060.0.4.0.3.11";
     
-    String META_NORMALIZER_OC               = "metaNormalizer";
-    String META_NORMALIZER_OC_OID           = "1.3.6.1.4.1.18060.0.4.0.3.12";
+    public final static String META_NORMALIZER_OC               = "metaNormalizer";
+    public final static String META_NORMALIZER_OC_OID           = "1.3.6.1.4.1.18060.0.4.0.3.12";
     
-    String META_COMPARATOR_OC               = "metaComparator";
-    String META_COMPARATOR_OC_OID           = "1.3.6.1.4.1.18060.0.4.0.3.13";
+    public final static String META_COMPARATOR_OC               = "metaComparator";
+    public final static String META_COMPARATOR_OC_OID           = "1.3.6.1.4.1.18060.0.4.0.3.13";
 
 
     // -- attributeType names --
-    String M_OID_AT                         = "m-oid";
-    String M_OID_AT_OID                     = "1.3.6.1.4.1.18060.0.4.0.2.1 ";
+    public final static String M_OID_AT                         = "m-oid";
+    public final static String M_OID_AT_OID                     = "1.3.6.1.4.1.18060.0.4.0.2.1 ";
 
-    String M_NAME_AT                        = "m-name";
-    String M_NAME_AT_OID                    = "1.3.6.1.4.1.18060.0.4.0.2.2 ";
+    public final static String M_NAME_AT                        = "m-name";
+    public final static String M_NAME_AT_OID                    = "1.3.6.1.4.1.18060.0.4.0.2.2 ";
 
-    String M_DESCRIPTION_AT                 = "m-description";
-    String M_DESCRIPTION_AT_OID             = "1.3.6.1.4.1.18060.0.4.0.2.3 ";
+    public final static String M_DESCRIPTION_AT                 = "m-description";
+    public final static String M_DESCRIPTION_AT_OID             = "1.3.6.1.4.1.18060.0.4.0.2.3 ";
     
-    String M_OBSOLETE_AT                    = "m-obsolete";
-    String M_OBSOLETE_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.4 ";
+    public final static String M_OBSOLETE_AT                    = "m-obsolete";
+    public final static String M_OBSOLETE_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.4 ";
     
-    String M_SUP_OBJECT_CLASS_AT            = "m-supObjectClass";
-    String M_SUP_OBJECT_CLASS_AT_OID        = "1.3.6.1.4.1.18060.0.4.0.2.5 ";
+    public final static String M_SUP_OBJECT_CLASS_AT            = "m-supObjectClass";
+    public final static String M_SUP_OBJECT_CLASS_AT_OID        = "1.3.6.1.4.1.18060.0.4.0.2.5 ";
     
-    String M_MUST_AT                        = "m-must";
-    String M_MUST_AT_OID                    = "1.3.6.1.4.1.18060.0.4.0.2.6 ";
+    public final static String M_MUST_AT                        = "m-must";
+    public final static String M_MUST_AT_OID                    = "1.3.6.1.4.1.18060.0.4.0.2.6 ";
 
-    String M_MAY_AT                         = "m-may";
-    String M_MAY_AT_OID                     = "1.3.6.1.4.1.18060.0.4.0.2.7 ";
+    public final static String M_MAY_AT                         = "m-may";
+    public final static String M_MAY_AT_OID                     = "1.3.6.1.4.1.18060.0.4.0.2.7 ";
 
-    String M_TYPE_OBJECT_CLASS_AT           = "m-typeObjectClass";
-    String M_TYPE_OBJECT_CLASS_AT_OID       = "1.3.6.1.4.1.18060.0.4.0.2.8 ";
+    public final static String M_TYPE_OBJECT_CLASS_AT           = "m-typeObjectClass";
+    public final static String M_TYPE_OBJECT_CLASS_AT_OID       = "1.3.6.1.4.1.18060.0.4.0.2.8 ";
     
-    String M_SUP_ATTRIBUTE_TYPE_AT          = "m-supAttributeType";
-    String M_SUP_ATTRIBUTE_TYPE_AT_OID      = "1.3.6.1.4.1.18060.0.4.0.2.10";
+    public final static String M_SUP_ATTRIBUTE_TYPE_AT          = "m-supAttributeType";
+    public final static String M_SUP_ATTRIBUTE_TYPE_AT_OID      = "1.3.6.1.4.1.18060.0.4.0.2.10";
 
-    String M_EQUALITY_AT                    = "m-equality";
-    String M_EQUALITY_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.11";
+    public final static String M_EQUALITY_AT                    = "m-equality";
+    public final static String M_EQUALITY_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.11";
 
-    String M_ORDERING_AT                    = "m-ordering";
-    String M_ORDERING_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.12";
+    public final static String M_ORDERING_AT                    = "m-ordering";
+    public final static String M_ORDERING_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.12";
 
-    String M_SUBSTR_AT                      = "m-substr";
-    String M_SUBSTR_AT_OID                  = "1.3.6.1.4.1.18060.0.4.0.2.13";
+    public final static String M_SUBSTR_AT                      = "m-substr";
+    public final static String M_SUBSTR_AT_OID                  = "1.3.6.1.4.1.18060.0.4.0.2.13";
 
-    String M_SYNTAX_AT                      = "m-syntax";
-    String M_SYNTAX_AT_OID                  = "1.3.6.1.4.1.18060.0.4.0.2.14";
+    public final static String M_SYNTAX_AT                      = "m-syntax";
+    public final static String M_SYNTAX_AT_OID                  = "1.3.6.1.4.1.18060.0.4.0.2.14";
 
-    String M_SINGLE_VALUE_AT                = "m-singleValue";
-    String M_SINGLE_VALUE_AT_OID            = "1.3.6.1.4.1.18060.0.4.0.2.15";
+    public final static String M_SINGLE_VALUE_AT                = "m-singleValue";
+    public final static String M_SINGLE_VALUE_AT_OID            = "1.3.6.1.4.1.18060.0.4.0.2.15";
     
-    String M_COLLECTIVE_AT                  = "m-collective";
-    String M_COLLECTIVE_AT_OID              = "1.3.6.1.4.1.18060.0.4.0.2.16";
+    public final static String M_COLLECTIVE_AT                  = "m-collective";
+    public final static String M_COLLECTIVE_AT_OID              = "1.3.6.1.4.1.18060.0.4.0.2.16";
 
-    String M_NO_USER_MODIFICATION_AT        = "m-noUserModification";
-    String M_NO_USER_MODIFICATION_AT_OID    = "1.3.6.1.4.1.18060.0.4.0.2.17";
+    public final static String M_NO_USER_MODIFICATION_AT        = "m-noUserModification";
+    public final static String M_NO_USER_MODIFICATION_AT_OID    = "1.3.6.1.4.1.18060.0.4.0.2.17";
 
-    String M_USAGE_AT                       = "m-usage";
-    String M_USAGE_AT_OID                   = "1.3.6.1.4.1.18060.0.4.0.2.18";
+    public final static String M_USAGE_AT                       = "m-usage";
+    public final static String M_USAGE_AT_OID                   = "1.3.6.1.4.1.18060.0.4.0.2.18";
     
-    String M_RULE_ID_AT                     = "m-ruleId";
-    String M_RULE_ID_AT_OID                 = "1.3.6.1.4.1.18060.0.4.0.2.20";
+    public final static String M_RULE_ID_AT                     = "m-ruleId";
+    public final static String M_RULE_ID_AT_OID                 = "1.3.6.1.4.1.18060.0.4.0.2.20";
     
-    String M_FORM_AT                        = "m-form";
-    String M_FORM_AT_OID                    = "1.3.6.1.4.1.18060.0.4.0.2.21";
+    public final static String M_FORM_AT                        = "m-form";
+    public final static String M_FORM_AT_OID                    = "1.3.6.1.4.1.18060.0.4.0.2.21";
     
-    String M_SUP_DIT_STRUCTURE_RULE_AT      = "m-supDITStructureRule";
-    String M_SUP_DIT_STRUCTURE_RULE_AT_OID  = "1.3.6.1.4.1.18060.0.4.0.2.22";
+    public final static String M_SUP_DIT_STRUCTURE_RULE_AT      = "m-supDITStructureRule";
+    public final static String M_SUP_DIT_STRUCTURE_RULE_AT_OID  = "1.3.6.1.4.1.18060.0.4.0.2.22";
 
-    String M_OC_AT                          = "m-oc";
-    String M_OC_AT_OID                      = "1.3.6.1.4.1.18060.0.4.0.2.24";
+    public final static String M_OC_AT                          = "m-oc";
+    public final static String M_OC_AT_OID                      = "1.3.6.1.4.1.18060.0.4.0.2.24";
     
-    String M_AUX_AT                         = "m-aux";
-    String M_AUX_AT_OID                     = "1.3.6.1.4.1.18060.0.4.0.2.26";
+    public final static String M_AUX_AT                         = "m-aux";
+    public final static String M_AUX_AT_OID                     = "1.3.6.1.4.1.18060.0.4.0.2.26";
 
-    String M_NOT_AT                         = "m-not";
-    String M_NOT_AT_OID                     = "1.3.6.1.4.1.18060.0.4.0.2.27";
+    public final static String M_NOT_AT                         = "m-not";
+    public final static String M_NOT_AT_OID                     = "1.3.6.1.4.1.18060.0.4.0.2.27";
     
-    String M_APPLIES_AT                     = "m-applies";
-    String M_APPLIES_AT_OID                 = "1.3.6.1.4.1.18060.0.4.0.2.29";
+    public final static String M_APPLIES_AT                     = "m-applies";
+    public final static String M_APPLIES_AT_OID                 = "1.3.6.1.4.1.18060.0.4.0.2.29";
     
-    String M_MATCHING_RULE_SYNTAX_AT        = "m-matchingRuleSyntax";
-    String M_MATCHING_RULE_SYNTAX_AT_OID    = "1.3.6.1.4.1.18060.0.4.0.2.31";
+    public final static String M_MATCHING_RULE_SYNTAX_AT        = "m-matchingRuleSyntax";
+    public final static String M_MATCHING_RULE_SYNTAX_AT_OID    = "1.3.6.1.4.1.18060.0.4.0.2.31";
 
-    String M_FQCN_AT                        = "m-fqcn";
-    String M_FQCN_AT_OID                    = "1.3.6.1.4.1.18060.0.4.0.2.32";
+    public final static String M_FQCN_AT                        = "m-fqcn";
+    public final static String M_FQCN_AT_OID                    = "1.3.6.1.4.1.18060.0.4.0.2.32";
 
-    String M_BYTECODE_AT                    = "m-bytecode";
-    String M_BYTECODE_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.33";
+    public final static String M_BYTECODE_AT                    = "m-bytecode";
+    public final static String M_BYTECODE_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.33";
     
-    String X_HUMAN_READABLE_AT              = "x-humanReadable";
-    String X_HUMAN_READABLE_AT_OID          = "1.3.6.1.4.1.18060.0.4.0.2.34";
+    public final static String X_HUMAN_READABLE_AT              = "x-humanReadable";
+    public final static String X_HUMAN_READABLE_AT_OID          = "1.3.6.1.4.1.18060.0.4.0.2.34";
 
-    String M_DISABLED_AT                    = "m-disabled";
-    String M_DISABLED_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.37";
+    public final static String M_DISABLED_AT                    = "m-disabled";
+    public final static String M_DISABLED_AT_OID                = "1.3.6.1.4.1.18060.0.4.0.2.37";
 
-    String M_DEPENDENCIES_AT                = "m-dependencies";
-    String M_DEPENDENCIES_AT_OID            = "1.3.6.1.4.1.18060.0.4.0.2.38";
+    public final static String M_DEPENDENCIES_AT                = "m-dependencies";
+    public final static String M_DEPENDENCIES_AT_OID            = "1.3.6.1.4.1.18060.0.4.0.2.38";
     
-    String M_LENGTH_AT                      = "m-length";
-    String M_LENGTH_AT_OID                  = "1.3.6.1.4.1.18060.0.4.0.2.39";
+    public final static String M_LENGTH_AT                      = "m-length";
+    public final static String M_LENGTH_AT_OID                  = "1.3.6.1.4.1.18060.0.4.0.2.39";
     
     // -- schema extensions & values --
-    String X_SCHEMA                         = "X-SCHEMA";
-    String X_IS_HUMAN_READABLE              = "X-IS-HUMAN-READABLE";
-    String X_READ_ONLY                      = "X-READ-ONLY";
-    String X_ENABLED                        = "X-ENABLED";
+    public final static String X_SCHEMA                         = "X-SCHEMA";
+    public final static String X_IS_HUMAN_READABLE              = "X-IS-HUMAN-READABLE";
+    public final static String X_READ_ONLY                      = "X-READ-ONLY";
+    public final static String X_ENABLED                        = "X-ENABLED";
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/PasswordPolicySchemaConstants.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/PasswordPolicySchemaConstants.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/PasswordPolicySchemaConstants.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/PasswordPolicySchemaConstants.java Mon Nov 22 21:24:13 2010
@@ -22,70 +22,80 @@ package org.apache.directory.shared.ldap
 
 /**
  * PasswordPolicySchemaConstants.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface PasswordPolicySchemaConstants
+public final class PasswordPolicySchemaConstants
 {
-    String PWD_POLICY_OC                    = "pwdPolicy";
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private PasswordPolicySchemaConstants()
+    {
+    }
+
+    public final static String PWD_POLICY_OC                    = "pwdPolicy";
     
-    String PWD_ATTRIBUTE_AT                 = "pwdAttribute";
+    public final static String PWD_ATTRIBUTE_AT                 = "pwdAttribute";
 
-    String PWD_LOCKOUT_DURATION_AT          = "pwdLockoutDuration";
+    public final static String PWD_LOCKOUT_DURATION_AT          = "pwdLockoutDuration";
 
-    String PWD_MAX_FAILURE_AT               = "pwdMaxFailure";
+    public final static String PWD_MAX_FAILURE_AT               = "pwdMaxFailure";
 
-    String PWD_FAILURE_COUNT_INTERVAL_AT    = "pwdFailureCountInterval";
+    public final static String PWD_FAILURE_COUNT_INTERVAL_AT    = "pwdFailureCountInterval";
 
-    String PWD_MUST_CHANGE_AT               = "pwdMustChange";
+    public final static String PWD_MUST_CHANGE_AT               = "pwdMustChange";
 
-    String PWD_ALLOW_USER_CHANGE_AT         = "pwdAllowUserChange";
+    public final static String PWD_ALLOW_USER_CHANGE_AT         = "pwdAllowUserChange";
 
-    String PWD_SAFE_MODIFY_AT               = "pwdSafeModify";
+    public final static String PWD_SAFE_MODIFY_AT               = "pwdSafeModify";
 
-    String PWD_CHANGED_TIME_AT              = "pwdChangedTime";
+    public final static String PWD_CHANGED_TIME_AT              = "pwdChangedTime";
 
-    String PWD_ACCOUNT_LOCKED_TIME_AT       = "pwdAccountLockedTime";
+    public final static String PWD_ACCOUNT_LOCKED_TIME_AT       = "pwdAccountLockedTime";
 
-    String PWD_FAILURE_TIME_AT              = "pwdFailureTime";
+    public final static String PWD_FAILURE_TIME_AT              = "pwdFailureTime";
 
-    String PWD_MIN_AGE_AT                   = "pwdMinAge";
+    public final static String PWD_MIN_AGE_AT                   = "pwdMinAge";
 
-    String PWD_HISTORY_AT                   = "pwdHistory";
+    public final static String PWD_HISTORY_AT                   = "pwdHistory";
 
-    String PWD_GRACE_USE_TIME_AT            = "pwdGraceUseTime";
+    public final static String PWD_GRACE_USE_TIME_AT            = "pwdGraceUseTime";
 
-    String PWD_RESET_AT                     = "pwdReset";
+    public final static String PWD_RESET_AT                     = "pwdReset";
 
-    String PWD_POLICY_SUBENTRY_AT           = "pwdPolicySubentry";
+    public final static String PWD_POLICY_SUBENTRY_AT           = "pwdPolicySubentry";
 
-    String PWD_MIN_DELAY_AT                 = "pwdMinDelay";
+    public final static String PWD_MIN_DELAY_AT                 = "pwdMinDelay";
 
-    String PWD_MAX_DELAY_AT                 = "pwdMaxDelay";
+    public final static String PWD_MAX_DELAY_AT                 = "pwdMaxDelay";
 
-    String PWD_MAX_IDLE_AT                  = "pwdMaxIdle";
+    public final static String PWD_MAX_IDLE_AT                  = "pwdMaxIdle";
 
-    String PWD_START_TIME_AT                = "pwdStartTime";
+    public final static String PWD_START_TIME_AT                = "pwdStartTime";
 
-    String PWD_END_TIME_AT                  = "pwdEndTime";
+    public final static String PWD_END_TIME_AT                  = "pwdEndTime";
 
-    String PWD_LAST_SUCCESS_AT              = "pwdLastSuccess";
+    public final static String PWD_LAST_SUCCESS_AT              = "pwdLastSuccess";
 
-    String PWD_MAX_AGE_AT                   = "pwdMaxAge";
+    public final static String PWD_MAX_AGE_AT                   = "pwdMaxAge";
 
-    String PWD_GRACE_EXPIRE_AT              = "pwdGraceExpire";
+    public final static String PWD_GRACE_EXPIRE_AT              = "pwdGraceExpire";
 
-    String PWD_MAX_LENGTH_AT                = "pwdMaxLength";
+    public final static String PWD_MAX_LENGTH_AT                = "pwdMaxLength";
 
-    String PWD_IN_HISTORY_AT                = "pwdInHistory";
+    public final static String PWD_IN_HISTORY_AT                = "pwdInHistory";
 
-    String PWD_CHECK_QUALITY_AT             = "pwdCheckQuality";
+    public final static String PWD_CHECK_QUALITY_AT             = "pwdCheckQuality";
 
-    String PWD_MIN_LENGTH_AT                = "pwdMinLength";
+    public final static String PWD_MIN_LENGTH_AT                = "pwdMinLength";
 
-    String PWD_EXPIRE_WARNING_AT            = "pwdExpireWarning";
+    public final static String PWD_EXPIRE_WARNING_AT            = "pwdExpireWarning";
 
-    String PWD_GRACE_AUTHN_LIMIT_AT         = "pwdGraceAuthNLimit";
+    public final static String PWD_GRACE_AUTHN_LIMIT_AT         = "pwdGraceAuthNLimit";
 
-    String PWD_LOCKOUT_AT                   = "pwdLockout";
+    public final static String PWD_LOCKOUT_AT                   = "pwdLockout";
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/SaslQoP.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/SaslQoP.java?rev=1037895&r1=1037894&r2=1037895&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/SaslQoP.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/constants/SaslQoP.java Mon Nov 22 21:24:13 2010
@@ -23,20 +23,30 @@ package org.apache.directory.shared.ldap
 /**
  * Contains constants used for populating the SASL QoP 
  * in the RootDSE.
+ * Final reference -> class shouldn't be extended
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface SaslQoP
+public final class SaslQoP
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private SaslQoP()
+    {
+    }
+
     /** The supported QOP attribute */
-    String ATTRIBUTE = "supportedQoP";
+    public final static String ATTRIBUTE = "supportedQoP";
 
     /** Authentication only */
-    String QOP_AUTH      = "auth" ;
+    public final static String QOP_AUTH      = "auth" ;
 
     /** Authentication with integrity protection */
-    String QOP_AUTH_INT  = "auth-int" ;
+    public final static String QOP_AUTH_INT  = "auth-int" ;
 
     /** Authentication with integrity and privacy protection */
-    String QOP_AUTH_CONF = "auth-conf" ;
+    public final static String QOP_AUTH_CONF = "auth-conf" ;
 }



Mime
View raw message