public class BindRequestProtocolOp extends ProtocolOp
Constructor and Description |
---|
BindRequestProtocolOp(ByteString dn,
int protocolVersion,
ByteString simplePassword)
Creates a new bind request protocol op to perform simple authentication with the provided DN and password.
|
BindRequestProtocolOp(ByteString dn,
String saslMechanism,
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.
|
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.
|
ByteString |
getSASLCredentials()
Retrieves the SASL credentials for this bind request.
|
String |
getSASLMechanism()
Retrieves the SASL mechanism for this bind request.
|
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 |
write(Asn1Writer stream)
Writes this protocol op to an ASN.1 output stream.
|
toString
public BindRequestProtocolOp(ByteString dn, int protocolVersion, 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(ByteString dn, String saslMechanism, 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 ByteString getDN()
public int getProtocolVersion()
public AuthenticationType getAuthenticationType()
public ByteString getSimplePassword()
null
if this is a SASL bind
request.public String getSASLMechanism()
null
if this is a simple bind request.public ByteString getSASLCredentials()
null
if there are none or if this is a simple
bind request.public byte getType()
ProtocolOp
getType
in class ProtocolOp
public String getProtocolOpName()
ProtocolOp
getProtocolOpName
in class ProtocolOp
public void write(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.Copyright 2010-2018 ForgeRock AS.