|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetscape.ldap.client.opers.JDAPBindRequest
public class JDAPBindRequest
This class implements the bind request. This object is sent to the ldap server.
BindRequest ::= [APPLICATION 0] SEQUENCE {
version INTEGER(1..127) ,
name LDAPDN,
authentication CHOICE {
simple [0] OCTET STRING,
krbv42LDAP [1] OCTET STRING,
krbv42DSA [2] OCTET STRING
}
}
Note that LDAPv3 bind reuqest is structured as follows:
BindRequest ::= [APPLICATION 0] SEQUENCE {
version INTEGER (1..127)
name LDAPDN,
authentication AuthenticationChoice
}
AuthenticationChoice ::= CHOICE {
simple [0] OCTET STRING,
-- 1 and 2 reserved
sasl [3] SaslCredentials
}
SaslCredentials ::= SEQUENCE {
mechanism LDAPString,
credentials OCTET STRING
}
| Field Summary | |
|---|---|
protected byte[] |
m_credentials
|
protected java.lang.String |
m_mechanism
|
protected java.lang.String |
m_name
|
protected java.lang.String |
m_password
|
protected int |
m_version
Internal variables |
| Fields inherited from interface netscape.ldap.client.opers.JDAPProtocolOp |
|---|
ABANDON_REQUEST, ADD_REQUEST, ADD_RESPONSE, BIND_REQUEST, BIND_RESPONSE, COMPARE_REQUEST, COMPARE_RESPONSE, DEL_REQUEST, DEL_RESPONSE, EXTENDED_REQUEST, EXTENDED_RESPONSE, MODIFY_RDN_REQUEST, MODIFY_RDN_RESPONSE, MODIFY_REQUEST, MODIFY_RESPONSE, SEARCH_REQUEST, SEARCH_RESPONSE, SEARCH_RESULT, SEARCH_RESULT_REFERENCE, UNBIND_REQUEST |
| Constructor Summary | |
|---|---|
JDAPBindRequest(int version,
java.lang.String name,
java.lang.String password)
Constructs anonymous or simple bind request. |
|
JDAPBindRequest(int version,
java.lang.String name,
java.lang.String mechanism,
byte[] credentials)
Constructs a LDAP v3.0 SaslCredentials bind request. |
|
| Method Summary | |
|---|---|
BERElement |
getBERElement()
Retrieves the ber representation of the request. |
java.lang.String |
getParamString()
Retrieves the string representation of the request parameters. |
int |
getType()
Retrieves the protocol operation type. |
java.lang.String |
toString()
Retrieves the string representation of the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int m_version
protected java.lang.String m_name
protected java.lang.String m_password
protected java.lang.String m_mechanism
protected byte[] m_credentials
| Constructor Detail |
|---|
public JDAPBindRequest(int version,
java.lang.String name,
java.lang.String password)
version - versionname - distinguished namepassword - password
public JDAPBindRequest(int version,
java.lang.String name,
java.lang.String mechanism,
byte[] credentials)
version - versionname - distinguished namemechanism - mechanism (must not be null)credentials - credientials| Method Detail |
|---|
public int getType()
getType in interface JDAPProtocolOppublic BERElement getBERElement()
getBERElement in interface JDAPProtocolOppublic java.lang.String getParamString()
public java.lang.String toString()
toString in interface JDAPProtocolOptoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||