Package org.ldaptive
Class BindResponse
- java.lang.Object
-
- org.ldaptive.AbstractMessage
-
- org.ldaptive.AbstractResult
-
- org.ldaptive.BindResponse
-
public class BindResponse extends AbstractResult
LDAP bind response defined as:BindResponse ::= [APPLICATION 1] SEQUENCE { COMPONENTS OF LDAPResult, serverSaslCreds [7] OCTET STRING OPTIONAL }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BindResponse.Builder
protected static class
BindResponse.SASLCredsHandler
Parse handler implementation for the server SASL creds.-
Nested classes/interfaces inherited from class org.ldaptive.AbstractResult
AbstractResult.AbstractBuilder<B,T extends AbstractResult>, AbstractResult.DiagnosticMessageHandler, AbstractResult.MatchedDNHandler, AbstractResult.ReferralHandler, AbstractResult.ResultCodeHandler
-
Nested classes/interfaces inherited from class org.ldaptive.AbstractMessage
AbstractMessage.ControlParser, AbstractMessage.ControlsHandler, AbstractMessage.MessageIDHandler
-
-
Field Summary
Fields Modifier and Type Field Description private static DERPath
DIAGNOSTIC_MESSAGE_PATH
DER path to diagnostic message.private static int
HASH_CODE_SEED
hash code seed.private static DERPath
MATCHED_DN_PATH
DER path to matched DN.static int
PROTOCOL_OP
BER protocol number.private static DERPath
REFERRAL_PATH
DER path to referral.private static DERPath
RESULT_CODE_PATH
DER path to result code.private static DERPath
SASL_CREDENTIALS_PATH
DER path to SASL credentials.private byte[]
serverSaslCreds
Server SASL credentials.-
Fields inherited from interface org.ldaptive.Result
ENCODE_CNTRL_CHARS
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BindResponse()
Default constructor.BindResponse(DERBuffer buffer)
Creates a new bind response.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BindResponse.Builder
builder()
Creates a builder for this class.boolean
equals(Object o)
byte[]
getServerSaslCreds()
int
hashCode()
Returns the hash code for this object.void
setServerSaslCreds(byte[] creds)
-
Methods inherited from class org.ldaptive.AbstractResult
addReferralURLs, copyValues, getDiagnosticMessage, getMatchedDN, getReferralURLs, getResultCode, setDiagnosticMessage, setMatchedDN, setResultCode, toString
-
Methods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, getControls, getMessageID, setMessageID
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ldaptive.Message
getControl, getControls, getMessageID
-
Methods inherited from interface org.ldaptive.Result
getEncodedDiagnosticMessage, isSuccess
-
-
-
-
Field Detail
-
PROTOCOL_OP
public static final int PROTOCOL_OP
BER protocol number.- See Also:
- Constant Field Values
-
HASH_CODE_SEED
private static final int HASH_CODE_SEED
hash code seed.- See Also:
- Constant Field Values
-
RESULT_CODE_PATH
private static final DERPath RESULT_CODE_PATH
DER path to result code.
-
MATCHED_DN_PATH
private static final DERPath MATCHED_DN_PATH
DER path to matched DN.
-
DIAGNOSTIC_MESSAGE_PATH
private static final DERPath DIAGNOSTIC_MESSAGE_PATH
DER path to diagnostic message.
-
REFERRAL_PATH
private static final DERPath REFERRAL_PATH
DER path to referral.
-
SASL_CREDENTIALS_PATH
private static final DERPath SASL_CREDENTIALS_PATH
DER path to SASL credentials.
-
serverSaslCreds
private byte[] serverSaslCreds
Server SASL credentials.
-
-
Constructor Detail
-
BindResponse
private BindResponse()
Default constructor.
-
BindResponse
public BindResponse(DERBuffer buffer)
Creates a new bind response.- Parameters:
buffer
- to decode
-
-
Method Detail
-
getServerSaslCreds
public byte[] getServerSaslCreds()
-
setServerSaslCreds
public void setServerSaslCreds(byte[] creds)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractResult
-
hashCode
public int hashCode()
Description copied from class:AbstractMessage
Returns the hash code for this object.- Specified by:
hashCode
in classAbstractMessage
- Returns:
- hash code
-
builder
public static BindResponse.Builder builder()
Creates a builder for this class.- Returns:
- new builder
-
-