public class GetPasswordsStateResponse
extends com.novell.ldap.LDAPExtendedResponse
GetPasswordsStateRequest
operation.
If this class is registered via LDAPExtendedResponse.register
then the return from
the LDAPConnection.extendedOperation
call will be an instance of this
class. Call this class's register
method or call
DirXMLExtensions.initialize
to register all DirXML LDAP extension response classes.
ASN1Sequence ASN1Integer bitmapped passwords state
bit 0: if set, driver object password is set bit 1: if set, application password is set bit 2: if set, remote loader password is set bits 3-n: reserved
ABANDON_REQUEST, ADD_REQUEST, ADD_RESPONSE, BIND_REQUEST, BIND_RESPONSE, COMPARE_REQUEST, COMPARE_RESPONSE, DEL_REQUEST, DEL_RESPONSE, EXTENDED_REQUEST, EXTENDED_RESPONSE, INTERMEDIATE_RESPONSE, message, MODIFY_RDN_REQUEST, MODIFY_RDN_RESPONSE, MODIFY_REQUEST, MODIFY_RESPONSE, SEARCH_REQUEST, SEARCH_RESPONSE, SEARCH_RESULT, SEARCH_RESULT_REFERENCE, UNBIND_REQUEST
Constructor and Description |
---|
GetPasswordsStateResponse(byte[] berData,
int offset,
int length)
Constructor used to create the JNDI
ExtendedResponse implementation. |
GetPasswordsStateResponse(com.novell.ldap.rfc2251.RfcLDAPMessage rfcMessage)
Constructor used by response factory to create an instance of this class
based on a response message.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncodedValue() |
int |
getState()
Get the state value from the response.
|
boolean |
isApplicationPasswordSet()
Convenience method that tests the state bit for the application password.
|
boolean |
isDriverObjectPasswordSet()
Convenience method that tests the state bit for the driver object password.
|
boolean |
isRemoteLoaderPasswordSet()
Convenience method that tests the state bit for the remote loader password.
|
static void |
register()
Register this class with
LDAPExtendedResponse.register for automatic construction
of this class as a result of LDAPConnection.extendedOperation . |
getID, getRegisteredResponses, getValue, register, setDeserializedValues
chkResultCode, getControls, getErrorMessage, getMatchedDN, getMessageID, getReferrals, getResultCode, getType
getTag, isRequest, readDSML, readExternal, setTag, toString, writeDSML, writeExternal
public GetPasswordsStateResponse(com.novell.ldap.rfc2251.RfcLDAPMessage rfcMessage)
rfcMessage
- message containing response datapublic GetPasswordsStateResponse(byte[] berData, int offset, int length)
ExtendedResponse
implementation.berData
- LBER-encoded response dataoffset
- offset of start of response data in berData
parameterlength
- length of response datapublic int getState()
public boolean isDriverObjectPasswordSet()
true
if password is set.public boolean isApplicationPasswordSet()
true
if password is set.public boolean isRemoteLoaderPasswordSet()
true
if password is set.public static void register() throws java.lang.ClassNotFoundException
LDAPExtendedResponse.register
for automatic construction
of this class as a result of LDAPConnection.extendedOperation
.java.lang.ClassNotFoundException
- thrown if the java.lang.Class object for this
class cannot be obtained.public byte[] getEncodedValue()
getEncodedValue
in interface javax.naming.ldap.ExtendedResponse