com.novell.security.nmas.mgmt
Class PwdLdapTransport

java.lang.Object
  |
  +--com.novell.security.nmas.mgmt.PwdLdapTransport
All Implemented Interfaces:
PwdTransport

public final class PwdLdapTransport
extends java.lang.Object
implements PwdTransport


Constructor Summary
PwdLdapTransport(javax.naming.ldap.LdapContext ldapCtx)
          PwdTransport constructor
 
Method Summary
 void changePwd(java.lang.String tName, java.lang.String objectDN, java.lang.String oldPwd, java.lang.String newPwd)
          changePwd() - Change the password for the specified object
 void deletePwd(java.lang.String tName, java.lang.String objectDN)
          deletePwd() - Delete the password for the specified object
 java.lang.String dnsToX500DN(java.lang.String objectDN)
          getPwdPolicyDNX500() - Return the X500 for of the DN for the password policy from the specified object
 java.lang.String getPwd(java.lang.String tName, java.lang.String objectDN)
          getPwd() - Read the password from the specified object
 java.lang.String getPwdPolicyDN(java.lang.String tName, java.lang.String objectDN)
          getPwdPolicyDN() - Return the DN of the password password policy from the specified object
 com.novell.security.nmas.mgmt.NMASPwdStatus getPwdStatus(java.lang.String tName, java.lang.String objectDN)
          getPwdStatus() - Returns an object containing the status flags for the password
 int pwdPolicyCheck(java.lang.String tName, java.lang.String objectDN, java.lang.String pwdStr)
          pwdPolicyCheck() - Verify the password against the specified policy
 void setPwd(java.lang.String tName, java.lang.String objectDN, java.lang.String pwdStr)
          setPwd() - Set the password for the specified object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PwdLdapTransport

public PwdLdapTransport(javax.naming.ldap.LdapContext ldapCtx)
PwdTransport constructor

Parameters:
ldapCtx - An LdapContext object created and authenticated by the caller
Method Detail

setPwd

public void setPwd(java.lang.String tName,
                   java.lang.String objectDN,
                   java.lang.String pwdStr)
            throws NMASPwdException
setPwd() - Set the password for the specified object

Specified by:
setPwd in interface PwdTransport
Parameters:
tName - eDirectory tree name
objectDN - The distinguished name of the object to write password data to
Throws:
NMASPwdException - contains the nmas error code

getPwd

public java.lang.String getPwd(java.lang.String tName,
                               java.lang.String objectDN)
                        throws NMASPwdException
getPwd() - Read the password from the specified object

Specified by:
getPwd in interface PwdTransport
Parameters:
tName - eDirectory tree name
objectDN - The distinguished name of the object to write password data to
Returns:
String A String containing the password read, may be null
Throws:
NMASPwdException - contains the nmas error code

deletePwd

public void deletePwd(java.lang.String tName,
                      java.lang.String objectDN)
               throws NMASPwdException
deletePwd() - Delete the password for the specified object

Specified by:
deletePwd in interface PwdTransport
Parameters:
tName - eDirectory tree name
objectDN - The distinguished name of the object to write password data to
Throws:
NMASPwdException - contains the nmas error code

changePwd

public void changePwd(java.lang.String tName,
                      java.lang.String objectDN,
                      java.lang.String oldPwd,
                      java.lang.String newPwd)
               throws NMASPwdException
changePwd() - Change the password for the specified object

Specified by:
changePwd in interface PwdTransport
Parameters:
tName - eDirectory tree name
objectDN - The distinguished name of the object to write password data to
oldPwd - A String containing the old password
newPwd - A String containing the new password
Throws:
NMASPwdException - contains the nmas error code

pwdPolicyCheck

public int pwdPolicyCheck(java.lang.String tName,
                          java.lang.String objectDN,
                          java.lang.String pwdStr)
                   throws NMASPwdException
pwdPolicyCheck() - Verify the password against the specified policy

Specified by:
pwdPolicyCheck in interface PwdTransport
Parameters:
tName - eDirectory tree name
objectDN - The distinguished name of the object to write password data to
Returns:
void
Throws:
NMASPwdException - contains the nmas error code

getPwdStatus

public com.novell.security.nmas.mgmt.NMASPwdStatus getPwdStatus(java.lang.String tName,
                                                                java.lang.String objectDN)
                                                         throws NMASPwdException
getPwdStatus() - Returns an object containing the status flags for the password

Specified by:
getPwdStatus in interface PwdTransport
Parameters:
tName - eDirectory tree name
objectDN - The distinguished name of the object to write password data to
Returns:
NMASPwdStatus An object containing the password status
Throws:
NMASPwdException - contains the nmas error code

getPwdPolicyDN

public java.lang.String getPwdPolicyDN(java.lang.String tName,
                                       java.lang.String objectDN)
                                throws NMASPwdException
getPwdPolicyDN() - Return the DN of the password password policy from the specified object

Specified by:
getPwdPolicyDN in interface PwdTransport
Parameters:
tName - eDirectory tree name
objectDN - The distinguished name of the object to write password data to
Returns:
String A String containing the password read, may be null
Throws:
NMASPwdException - contains the nmas error code

dnsToX500DN

public java.lang.String dnsToX500DN(java.lang.String objectDN)
                             throws NMASPwdException
getPwdPolicyDNX500() - Return the X500 for of the DN for the password policy from the specified object

Specified by:
dnsToX500DN in interface PwdTransport
Parameters:
objectDN - The distinguished name of the object to write password data to
Returns:
String A String containing the password read, may be null
Throws:
NMASPwdException - contains the nmas error code