From 22094368c2865dcfb6daf8366425212b721a4657 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 05 Feb 2009 17:42:14 +0000
Subject: [PATCH] Merge ASN1 branch to trunk
---
opends/src/server/org/opends/server/core/BindOperationBasis.java | 39 ++++++++++++++++++---------------------
1 files changed, 18 insertions(+), 21 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/BindOperationBasis.java b/opends/src/server/org/opends/server/core/BindOperationBasis.java
index 874aed7..01110df 100644
--- a/opends/src/server/org/opends/server/core/BindOperationBasis.java
+++ b/opends/src/server/org/opends/server/core/BindOperationBasis.java
@@ -52,14 +52,11 @@
import org.opends.server.core.networkgroups.NetworkGroup;
import org.opends.server.loggers.debug.DebugLogger;
import org.opends.server.loggers.debug.DebugTracer;
-import org.opends.server.protocols.asn1.ASN1OctetString;
import org.opends.server.types.*;
import org.opends.server.types.operation.PreParseBindOperation;
import org.opends.server.workflowelement.localbackend.*;
-
-
/**
* This class defines an operation that may be used to authenticate a user to
* the Directory Server. Note that for security restrictions, response messages
@@ -80,10 +77,10 @@
private static final DebugTracer TRACER = DebugLogger.getTracer();
// The credentials used for SASL authentication.
- private ASN1OctetString saslCredentials;
+ private ByteString saslCredentials;
// The server SASL credentials provided to the client in the response.
- private ASN1OctetString serverSASLCredentials;
+ private ByteString serverSASLCredentials;
// The authentication info for this bind operation.
private AuthenticationInfo authInfo = null;
@@ -151,7 +148,7 @@
if (rawBindDN == null)
{
- this.rawBindDN = new ASN1OctetString();
+ this.rawBindDN = ByteString.empty();
}
else
{
@@ -160,7 +157,7 @@
if (simplePassword == null)
{
- this.simplePassword = new ASN1OctetString();
+ this.simplePassword = ByteString.empty();
}
else
{
@@ -199,7 +196,7 @@
public BindOperationBasis(ClientConnection clientConnection, long operationID,
int messageID, List<Control> requestControls,
String protocolVersion, ByteString rawBindDN,
- String saslMechanism, ASN1OctetString saslCredentials)
+ String saslMechanism, ByteString saslCredentials)
{
super(clientConnection, operationID, messageID, requestControls);
@@ -212,7 +209,7 @@
if (rawBindDN == null)
{
- this.rawBindDN = new ASN1OctetString();
+ this.rawBindDN = ByteString.empty();
}
else
{
@@ -262,16 +259,16 @@
if (bindDN == null)
{
- rawBindDN = new ASN1OctetString();
+ rawBindDN = ByteString.empty();
}
else
{
- rawBindDN = new ASN1OctetString(bindDN.toString());
+ rawBindDN = ByteString.valueOf(bindDN.toString());
}
if (simplePassword == null)
{
- this.simplePassword = new ASN1OctetString();
+ this.simplePassword = ByteString.empty();
}
else
{
@@ -308,7 +305,7 @@
public BindOperationBasis(ClientConnection clientConnection, long operationID,
int messageID, List<Control> requestControls,
String protocolVersion, DN bindDN,
- String saslMechanism, ASN1OctetString saslCredentials)
+ String saslMechanism, ByteString saslCredentials)
{
super(clientConnection, operationID, messageID, requestControls);
@@ -322,11 +319,11 @@
if (bindDN == null)
{
- rawBindDN = new ASN1OctetString();
+ rawBindDN = ByteString.empty();
}
else
{
- rawBindDN = new ASN1OctetString(bindDN.toString());
+ rawBindDN = ByteString.valueOf(bindDN.toString());
}
responseControls = new ArrayList<Control>(0);
@@ -363,7 +360,7 @@
{
if (rawBindDN == null)
{
- this.rawBindDN = new ASN1OctetString();
+ this.rawBindDN = ByteString.empty();
}
else
{
@@ -414,7 +411,7 @@
{
if (simplePassword == null)
{
- this.simplePassword = new ASN1OctetString();
+ this.simplePassword = ByteString.empty();
}
else
{
@@ -437,7 +434,7 @@
/**
* {@inheritDoc}
*/
- public final ASN1OctetString getSASLCredentials()
+ public final ByteString getSASLCredentials()
{
return saslCredentials;
}
@@ -446,7 +443,7 @@
* {@inheritDoc}
*/
public final void setSASLCredentials(String saslMechanism,
- ASN1OctetString saslCredentials)
+ ByteString saslCredentials)
{
this.saslMechanism = saslMechanism;
this.saslCredentials = saslCredentials;
@@ -458,7 +455,7 @@
/**
* {@inheritDoc}
*/
- public final ASN1OctetString getServerSASLCredentials()
+ public final ByteString getServerSASLCredentials()
{
return serverSASLCredentials;
}
@@ -466,7 +463,7 @@
/**
* {@inheritDoc}
*/
- public final void setServerSASLCredentials(ASN1OctetString
+ public final void setServerSASLCredentials(ByteString
serverSASLCredentials)
{
this.serverSASLCredentials = serverSASLCredentials;
--
Gitblit v1.10.0