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
public class BindResponseImpl extends AbstractResultResponse implements BindResponse
BindResponse implementation.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description BindResponseImpl()
Creates a BindResponse as a reply to an BindRequest.BindResponseImpl(int id)
Creates a BindResponse as a reply to an BindRequest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(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.int
hashCode()
void
setServerSaslCreds(byte[] serverSaslCreds)
Sets the optional property holding SASL authentication response paramters that are SASL mechanism specific.String
toString()
Get a String representation of a BindResponse-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractResultResponse
getLdapResult
-
Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Constructor Detail
-
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 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 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:
setServerSaslCreds
in interfaceBindResponse
- Parameters:
serverSaslCreds
- the sasl auth. mech. specific credentials
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractResultResponse
- Returns:
- the instance's hash code
- See Also:
Object.hashCode()
-
equals
public boolean equals(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 classAbstractResultResponse
- Parameters:
obj
- the object to test for equality with this BindResponse- Returns:
- true if obj equals this BindResponse false otherwise
-
toString
public String toString()
Get a String representation of a BindResponse- Overrides:
toString
in classAbstractResultResponse
- Returns:
- A BindResponse String
-
-