com.novell.security.nmas.mgmt
Class NMASSimplePwdMgr

java.lang.Object
  |
  +--com.novell.security.nmas.mgmt.NMASSimplePwdMgr

public final class NMASSimplePwdMgr
extends java.lang.Object

Provides a simple set of controls to access (set/get/delete) the NMAS Simple Password.


Constructor Summary
NMASSimplePwdMgr(javax.naming.ldap.LdapContext ldapCtx)
          NMASSimplePwdMgr constructor
NMASSimplePwdMgr(com.novell.security.nmas.mgmt.LoginDataTransport transport)
          The NMASLoginDataMgr transport constructor.
 
Method Summary
 void deleteSimplePwd(java.lang.String tName, java.lang.String objectDN)
          Deletes the Simple Password from the given object.
 java.lang.String getSimplePwd(java.lang.String tName, java.lang.String objectDN)
          Reads the Simple Password from the given object.
 boolean isSimplePwdAssigned(java.lang.String tName, java.lang.String objectDN)
          Determines if a Simple Password has been assigned to the given user object.
 void setSimplePwd(java.lang.String tName, java.lang.String objectDN, java.lang.String pwd)
          Writes the given Simple Password to the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NMASSimplePwdMgr

public NMASSimplePwdMgr(javax.naming.ldap.LdapContext ldapCtx)
NMASSimplePwdMgr constructor

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

NMASSimplePwdMgr

public NMASSimplePwdMgr(com.novell.security.nmas.mgmt.LoginDataTransport transport)
The NMASLoginDataMgr transport constructor.

Parameters:
transport - A LoginDataTransport object initialized and authenticated by the caller.
Method Detail

setSimplePwd

public final void setSimplePwd(java.lang.String tName,
                               java.lang.String objectDN,
                               java.lang.String pwd)
                        throws NMASLoginDataException
Writes the given Simple Password to the given object.

Parameters:
tName - The eDirectory tree name.
objectDN - The distinguished name of the object in dot notation (i.e. usr1.novell).
pwd - A string containing the password to be written.
Throws:
NMASLoginDataException - contains the NMAS error code.

isSimplePwdAssigned

public final boolean isSimplePwdAssigned(java.lang.String tName,
                                         java.lang.String objectDN)
                                  throws NMASLoginDataException
Determines if a Simple Password has been assigned to the given user object.

Parameters:
tName - The eDirectory tree name.
objectDN - The distinguished name of the object in dot notation (for example, usr1.novell).
Returns:
boolean true if a Simple Password was found, otherwise false.
Throws:
NMASLoginDataException - contains the NMAS error code.

getSimplePwd

public final java.lang.String getSimplePwd(java.lang.String tName,
                                           java.lang.String objectDN)
                                    throws NMASLoginDataException
Reads the Simple Password from the given object.

Parameters:
tName - The eDirectory tree name.
objectDN - The distinguished name of the object in dot notation (i.e. usr1.novell).
Returns:
String A string containing the Simple Password.
Throws:
NMASLoginDataException - contains the NMAS error code.

deleteSimplePwd

public final void deleteSimplePwd(java.lang.String tName,
                                  java.lang.String objectDN)
                           throws NMASLoginDataException
Deletes the Simple Password from the given object.

Parameters:
tName - The eDirectory tree name.
objectDN - The distinguished name of the object in dot notation (i.e. usr1.novell).
Throws:
NMASLoginDataException - contains the NMAS error code.