Class BindResponseImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractResponse
org.apache.directory.api.ldap.model.message.AbstractResultResponse
org.apache.directory.api.ldap.model.message.BindResponseImpl
- All Implemented Interfaces:
BindResponse, Message, Response, ResultResponse
- Direct Known Subclasses:
BindNoDResponse
BindResponse implementation.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractResultResponse
ldapResultFields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionCreates a BindResponse as a reply to an BindRequest.BindResponseImpl(int id) Creates a BindResponse as a reply to an BindRequest. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks to see if this BindResponse is equal to another BindResponse.byte[]Gets the optional property holding SASL authentication response paramters that are SASL mechanism specific.inthashCode()voidsetServerSaslCreds(byte[] serverSaslCreds) Sets the optional property holding SASL authentication response paramters that are SASL mechanism specific.toString()Get a String representation of a BindResponseMethods inherited from class AbstractResultResponse
getLdapResultMethods inherited from class AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringMethods inherited from interface Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdMethods inherited from interface ResultResponse
getLdapResult
-
Constructor Details
-
BindResponseImpl
public BindResponseImpl()Creates a BindResponse as a reply to an BindRequest. -
BindResponseImpl
public BindResponseImpl(int id) Creates a BindResponse as a reply to an BindRequest.- Parameters:
id- the session unique message id
-
-
Method Details
-
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:
getServerSaslCredsin interfaceBindResponse- 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:
setServerSaslCredsin interfaceBindResponse- Parameters:
serverSaslCreds- the sasl auth. mech. specific credentials
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractResultResponse- Returns:
- the instance's hash code
- See Also:
-
equals
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:
equalsin classAbstractResultResponse- Parameters:
obj- the object to test for equality with this BindResponse- Returns:
- true if obj equals this BindResponse false otherwise
-
toString
Get a String representation of a BindResponse- Overrides:
toStringin classAbstractResultResponse- Returns:
- A BindResponse String
-