From b231195429e28098e1baceda8a2a2f553a58ca33 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 22 Apr 2013 12:13:00 +0000
Subject: [PATCH] Minor improvement for OPENDJ-419: exposing SIMPLE and SASL authentication types in BindRequest.
---
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/BindRequest.java | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/BindRequest.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/BindRequest.java
index 58c974e..9807567 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/BindRequest.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/BindRequest.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2009 Sun Microsystems, Inc.
- * Portions copyright 2012 ForgeRock AS.
+ * Portions copyright 2012-2013 ForgeRock AS.
*/
package org.forgerock.opendj.ldap.requests;
@@ -42,6 +42,17 @@
*/
public interface BindRequest extends Request {
+ /**
+ * The authentication type value (0x80) reserved for simple authentication.
+ */
+ public static final byte AUTHENTICATION_TYPE_SIMPLE = (byte) 0x80;
+
+ /**
+ * The authentication type value (0xA3) reserved for SASL authentication.
+ */
+ public static final byte AUTHENTICATION_TYPE_SASL = (byte) 0xA3;
+
+
@Override
BindRequest addControl(Control control);
@@ -61,9 +72,10 @@
/**
* Returns the authentication mechanism identifier for this generic bind
- * request as defined by the LDAP protocol. Note that value {@code 0x80} is
- * reserved for simple authentication and {@code 0xA3} is reserved for SASL
- * authentication.
+ * request as defined by the LDAP protocol. Note that the value
+ * {@link #AUTHENTICATION_TYPE_SIMPLE} ({@code 0x80}) is reserved for simple
+ * authentication and the value {@link #AUTHENTICATION_TYPE_SASL} (
+ * {@code 0xA3}) is reserved for SASL authentication.
*
* @return The authentication mechanism identifier.
*/
--
Gitblit v1.10.0