public class BindResponseProtocolOp extends ProtocolOp
Constructor and Description |
---|
BindResponseProtocolOp(int resultCode)
Creates a new bind response protocol op with the provided result code.
|
BindResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage)
Creates a new bind response protocol op with the provided result code and
error message.
|
BindResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage,
org.forgerock.opendj.ldap.Dn matchedDN,
List<String> referralURLs)
Creates a new bind response protocol op with the provided information.
|
BindResponseProtocolOp(int resultCode,
LocalizableMessage errorMessage,
org.forgerock.opendj.ldap.Dn matchedDN,
List<String> referralURLs,
org.forgerock.opendj.ldap.ByteString serverSASLCredentials)
Creates a new bind response protocol op with the provided information.
|
Modifier and Type | Method and Description |
---|---|
LocalizableMessage |
getErrorMessage()
Retrieves the error message for this response.
|
org.forgerock.opendj.ldap.Dn |
getMatchedDN()
Retrieves the matched DN for this response.
|
String |
getProtocolOpName()
Retrieves the name for this protocol op type.
|
List<String> |
getReferralURLs()
Retrieves the set of referral URLs for this response.
|
int |
getResultCode()
Retrieves the result code for this response.
|
org.forgerock.opendj.ldap.ByteString |
getServerSASLCredentials()
Retrieves the server SASL credentials for this response.
|
byte |
getType()
Retrieves the BER type for this protocol op.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this LDAP protocol op to the provided
buffer.
|
void |
toString(StringBuilder buffer,
int indent)
Appends a multi-line string representation of this LDAP protocol op to the
provided buffer.
|
void |
write(org.forgerock.opendj.io.Asn1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toString
public BindResponseProtocolOp(int resultCode)
resultCode
- The result code for this response.public BindResponseProtocolOp(int resultCode, LocalizableMessage errorMessage)
resultCode
- The result code for this response.errorMessage
- The error message for this response.public BindResponseProtocolOp(int resultCode, LocalizableMessage errorMessage, org.forgerock.opendj.ldap.Dn matchedDN, List<String> referralURLs)
resultCode
- The result code for this response.errorMessage
- The error message for this response.matchedDN
- The matched DN for this response.referralURLs
- The referral URLs for this response.public BindResponseProtocolOp(int resultCode, LocalizableMessage errorMessage, org.forgerock.opendj.ldap.Dn matchedDN, List<String> referralURLs, org.forgerock.opendj.ldap.ByteString serverSASLCredentials)
resultCode
- The result code for this response.errorMessage
- The error message for this response.matchedDN
- The matched DN for this response.referralURLs
- The referral URLs for this response.serverSASLCredentials
- The server SASL credentials for thispublic int getResultCode()
public LocalizableMessage getErrorMessage()
null
if none
is available.public org.forgerock.opendj.ldap.Dn getMatchedDN()
null
if none is
available.public List<String> getReferralURLs()
null
if none are available.public org.forgerock.opendj.ldap.ByteString getServerSASLCredentials()
null
if there are none.public byte getType()
ProtocolOp
getType
in class ProtocolOp
public String getProtocolOpName()
ProtocolOp
getProtocolOpName
in class ProtocolOp
public void write(org.forgerock.opendj.io.Asn1Writer stream) throws IOException
ProtocolOp
write
in class ProtocolOp
stream
- The ASN.1 output stream to write to.IOException
- If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
ProtocolOp
toString
in class ProtocolOp
buffer
- The buffer to which the string should be appended.public void toString(StringBuilder buffer, int indent)
ProtocolOp
toString
in class ProtocolOp
buffer
- The buffer to which the information should be appended.indent
- The number of spaces from the margin that the lines should
be indented.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.