com.novell.security.nmas.mgmt
Interface PwdTransport

All Known Implementing Classes:
PwdJLdapTransport, PwdLdapTransport

public interface PwdTransport


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)
          getPwdPolicyDN() - Return the DN of the X500 DN from the specified DN
 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
 

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

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

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

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

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

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

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

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
getPwdPolicyDN() - Return the DN of the X500 DN from the specified DN

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