public class BindRequestProtocolOp extends ProtocolOp
| Constructor and Description |
|---|
BindRequestProtocolOp(org.forgerock.opendj.ldap.ByteString dn,
int protocolVersion,
org.forgerock.opendj.ldap.ByteString simplePassword)
Creates a new bind request protocol op to perform simple authentication
with the provided DN and password.
|
BindRequestProtocolOp(org.forgerock.opendj.ldap.ByteString dn,
String saslMechanism,
org.forgerock.opendj.ldap.ByteString saslCredentials)
Creates a new bind request protocol op to perform SASL authentication with
the provided information.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationType |
getAuthenticationType()
Retrieves the authentication type for this bind request.
|
org.forgerock.opendj.ldap.ByteString |
getDN()
Retrieves the DN for this bind request.
|
String |
getProtocolOpName()
Retrieves the name for this protocol op type.
|
int |
getProtocolVersion()
Retrieves the protocol version for this bind request.
|
org.forgerock.opendj.ldap.ByteString |
getSASLCredentials()
Retrieves the SASL credentials for this bind request.
|
String |
getSASLMechanism()
Retrieves the SASL mechanism for this bind request.
|
org.forgerock.opendj.ldap.ByteString |
getSimplePassword()
Retrieves the simple authentication password for this bind request.
|
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.
|
toStringpublic BindRequestProtocolOp(org.forgerock.opendj.ldap.ByteString dn, int protocolVersion, org.forgerock.opendj.ldap.ByteString simplePassword)
dn - The DN for this bind request.protocolVersion - The LDAP protocol version for this bind request.simplePassword - The password for this bind request.public BindRequestProtocolOp(org.forgerock.opendj.ldap.ByteString dn, String saslMechanism, org.forgerock.opendj.ldap.ByteString saslCredentials)
dn - The DN for this bind request.saslMechanism - The SASL mechanism for this bind request.saslCredentials - The SASL credentials for this bind request.public org.forgerock.opendj.ldap.ByteString getDN()
public int getProtocolVersion()
public AuthenticationType getAuthenticationType()
public org.forgerock.opendj.ldap.ByteString getSimplePassword()
null if this is a SASL bind request.public String getSASLMechanism()
null if
this is a simple bind request.public org.forgerock.opendj.ldap.ByteString getSASLCredentials()
null
if there are none or if this is a simple bind request.public byte getType()
getType in class ProtocolOppublic String getProtocolOpName()
getProtocolOpName in class ProtocolOppublic void write(org.forgerock.opendj.io.ASN1Writer stream) throws IOException
write in class ProtocolOpstream - The ASN.1 output stream to write to.IOException - If a problem occurs while writing to the stream.public void toString(StringBuilder buffer)
toString in class ProtocolOpbuffer - The buffer to which the string should be appended.public void toString(StringBuilder buffer, int indent)
toString in class ProtocolOpbuffer - 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-2015 ForgeRock AS. All Rights Reserved.