org.apache.directory.shared.ldap.message
Class BindResponseImpl

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractMessage
      extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractResponse
          extended by org.apache.directory.shared.ldap.message.internal.InternalAbstractResultResponse
              extended by org.apache.directory.shared.ldap.message.BindResponseImpl
All Implemented Interfaces:
InternalBindResponse, InternalMessage, InternalResponse, InternalResultResponse

public class BindResponseImpl
extends InternalAbstractResultResponse
implements InternalBindResponse

BindResponse implementation.

Version:
$Rev: 905344 $
Author:
Apache Directory Project

Field Summary
 
Fields inherited from interface org.apache.directory.shared.ldap.message.internal.InternalBindResponse
TYPE
 
Constructor Summary
BindResponseImpl(int id)
          Creates a Lockable AddResponse as a reply to an AddRequest.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks to see if this BindResponse is equal to another BindResponse.
 byte[] getServerSaslCreds()
          Gets the optional property holding SASL authentication response paramters that are SASL mechanism specific.
 void setServerSaslCreds(byte[] serverSaslCreds)
          Sets the optional property holding SASL authentication response paramters that are SASL mechanism specific.
 java.lang.String toString()
          Get a String representation of a BindResponse
 
Methods inherited from class org.apache.directory.shared.ldap.message.internal.InternalAbstractResultResponse
getLdapResult
 
Methods inherited from class org.apache.directory.shared.ldap.message.internal.InternalAbstractMessage
add, addAll, get, getControls, getMessageId, getType, hasControl, hashCode, put, remove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.directory.shared.ldap.message.internal.InternalResultResponse
getLdapResult
 
Methods inherited from interface org.apache.directory.shared.ldap.message.internal.InternalMessage
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
 

Constructor Detail

BindResponseImpl

public BindResponseImpl(int id)
Creates a Lockable AddResponse as a reply to an AddRequest.

Parameters:
id - the session unique message id
Method Detail

getServerSaslCreds

public byte[] getServerSaslCreds()
Gets the optional property holding SASL authentication response paramters that are SASL mechanism specific. Will return null if the authentication is simple.

Specified by:
getServerSaslCreds in interface InternalBindResponse
Returns:
the sasl mech. specific credentials or null of auth. is simple

setServerSaslCreds

public void setServerSaslCreds(byte[] serverSaslCreds)
Sets the optional property holding SASL authentication response paramters that are SASL mechanism specific. Leave null if authentication mode is simple.

Specified by:
setServerSaslCreds in interface InternalBindResponse
Parameters:
serverSaslCreds - the sasl auth. mech. specific credentials

equals

public boolean equals(java.lang.Object obj)
Checks to see if this BindResponse is equal to another BindResponse. The implementation and lockable properties are not factored into the evaluation of equality. Only the messageId, saslCredentials and the LdapResults of this BindResponse PDU and the compared object are taken into account if that object also implements the BindResponse interface.

Overrides:
equals in class InternalAbstractResultResponse
Parameters:
obj - the object to test for equality with this BindResponse
Returns:
true if obj equals this BindResponse false otherwise

toString

public java.lang.String toString()
Get a String representation of a BindResponse

Overrides:
toString in class InternalAbstractResultResponse
Returns:
A BindResponse String


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.