public class PwdModifyHandler extends java.lang.Object implements ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest,org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse>
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<java.lang.String> |
EXTENSION_OIDS |
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
PwdModifyHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getExtensionOids()
The OIDs of the extensions supported by this handler.
|
java.lang.String |
getOid()
Returns the EXTENSION_OID of the extended request this handler can handle.
|
void |
handleExtendedOperation(LdapSession requestor,
org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest req)
Handles the specified extended operation.
|
private void |
modifyUserPassword(CoreSession userSession,
org.apache.mina.core.session.IoSession ioPipe,
org.apache.directory.api.ldap.model.name.Dn userDn,
byte[] oldPassword,
byte[] newPassword,
org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest req)
Modify the user's credentials.
|
void |
setLdapServer(LdapServer ldapServer)
Sets the LDAP server for this extendedOperation handler.
|
private static final org.slf4j.Logger LOG
public static final java.util.Set<java.lang.String> EXTENSION_OIDS
public java.lang.String getOid()
getOid in interface ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest,org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse>private void modifyUserPassword(CoreSession userSession, org.apache.mina.core.session.IoSession ioPipe, org.apache.directory.api.ldap.model.name.Dn userDn, byte[] oldPassword, byte[] newPassword, org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest req)
public void handleExtendedOperation(LdapSession requestor, org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest req) throws java.lang.Exception
handleExtendedOperation in interface ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest,org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse>requestor - the session object related with current connectionreq - the LDAP Extended operation requestjava.lang.Exception - if failed to handle the operationpublic java.util.Set<java.lang.String> getExtensionOids()
getExtensionOids in interface ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest,org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse>public void setLdapServer(LdapServer ldapServer)
setLdapServer in interface ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequest,org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyResponse>ldapServer - the ldap protocol server