From 0ca095370a648a30730ed9cb7d4dda1d9bd10334 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 22 Jun 2016 17:31:07 +0000
Subject: [PATCH] OPENDJ-3036 Renamed various classes and methods to camel-case

---
 opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/SaslPlainStrategy.java |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/SASLPlainStrategy.java b/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/SaslPlainStrategy.java
similarity index 91%
rename from opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/SASLPlainStrategy.java
rename to opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/SaslPlainStrategy.java
index b3c9750..58b7b09 100644
--- a/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/SASLPlainStrategy.java
+++ b/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/SaslPlainStrategy.java
@@ -44,7 +44,7 @@
 import org.forgerock.util.promise.Promise;
 
 /** Bind using a computed DN from a template and the current request/context. */
-final class SASLPlainStrategy implements AuthenticationStrategy {
+final class SaslPlainStrategy implements AuthenticationStrategy {
 
     private final ConnectionFactory connectionFactory;
     private final Function<String, String, LdapException> formatter;
@@ -62,8 +62,8 @@
      * @throws NullPointerException
      *             If a parameter is null
      */
-    public SASLPlainStrategy(final ConnectionFactory connectionFactory, final Schema schema,
-            final String authcIdTemplate) {
+    public SaslPlainStrategy(final ConnectionFactory connectionFactory, final Schema schema,
+                             final String authcIdTemplate) {
         this.connectionFactory = checkNotNull(connectionFactory, "connectionFactory cannot be null");
         checkNotNull(schema, "schema cannot be null");
         checkNotNull(authcIdTemplate, "authcIdTemplate cannot be null");
@@ -98,13 +98,14 @@
                     @Override
                     public Promise<SecurityContext, LdapException> apply(Connection connection) throws LdapException {
                         connectionHolder.set(connection);
-                        return doSASLPlainBind(connection, parentContext, username, password);
+                        return doSaslPlainBind(connection, parentContext, username, password);
                     }
                 }).thenFinally(close(connectionHolder));
     }
 
-    private Promise<SecurityContext, LdapException> doSASLPlainBind(final Connection connection,
-            final Context parentContext, final String authzId, final String password) throws LdapException {
+    private Promise<SecurityContext, LdapException> doSaslPlainBind(final Connection connection,
+                                                                    final Context parentContext, final String authzId,
+                                                                    final String password) throws LdapException {
         final String authcId = formatter.apply(authzId);
         return connection
                 .bindAsync(newPlainSASLBindRequest(authcId, password.toCharArray())

--
Gitblit v1.10.0