com.novell.security.nmas.mgmt
Class NMASPwdStatus

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

public final class NMASPwdStatus
extends java.lang.Object

This class holds the password status values for Universal Password and Simple Password, as well as a set of boolean access methods that can be used to determine status field. The status constants are public to allow an application to mask out the the status field they would like to check, if desired.


Field Summary
static byte SPM_SPWD_IS_CLEARTEXT
           
static byte SPM_SPWD_MATCHES_NDS
           
static byte SPM_SPWD_SET
           
static byte SPM_UPWD_ENABLED
           
static byte SPM_UPWD_HISTORY_FULL
           
static byte SPM_UPWD_MATCHES_NDS
           
static byte SPM_UPWD_MATCHES_SPWD
           
static byte SPM_UPWD_OLDER_THAN_NDS
           
static byte SPM_UPWD_SET
           
 
Constructor Summary
NMASPwdStatus()
           
 
Method Summary
 int getSimplePwdStatus()
          This method returns an integer containing the flags for the Simple Password status
 int getUniversalPwdStatus()
          Method to retrieve an integer containing the flags holding the Universal Password status
 boolean isSpmSpwdClearText()
          This method returns true if the Simple Password is in clear text format
 boolean isSpmSpwdMatchesNDS()
          This method returns true if the Simple Password matches the NDS Password
 boolean isSpmSpwdSet()
          This method report whether or not the Simple Password is set
 boolean isSpmUpwdEnabled()
          This method report if Universal Password is enabled
 boolean isSpmUpwdHistoryFull()
          This method reports whether or not the Universal Password history is full
 boolean isSpmUpwdMatchesNDS()
          This method reports whether or not the Universal Password matches the NDS Password
 boolean isSpmUpwdMatchesSPWD()
          This method returns true if the Universal Password matches the Simple Password
 boolean isSpmUpwdOlderThanNDS()
          This method reports whether or not the Universal Password is older than the NDS Password
 boolean isSpmUpwdSet()
          This method reports if the Universal Password is set
 void setSimplePwdStatus(int sPwdStatus)
          setSimplePwdStatus() is a set method used by the underlying LDAP extension to set the simplePwdStatus member of this object to the value read from eDirectory.
 void setUniversalPwdStatus(int uPwdStatus)
          setUniversalPwdStatus() is a set method used by the underlying LDAP extension to set the universalPwdStatus member of this object to the value read from eDirectory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPM_UPWD_ENABLED

public static final byte SPM_UPWD_ENABLED
See Also:
Constant Field Values

SPM_UPWD_SET

public static final byte SPM_UPWD_SET
See Also:
Constant Field Values

SPM_UPWD_HISTORY_FULL

public static final byte SPM_UPWD_HISTORY_FULL
See Also:
Constant Field Values

SPM_UPWD_MATCHES_NDS

public static final byte SPM_UPWD_MATCHES_NDS
See Also:
Constant Field Values

SPM_UPWD_OLDER_THAN_NDS

public static final byte SPM_UPWD_OLDER_THAN_NDS
See Also:
Constant Field Values

SPM_UPWD_MATCHES_SPWD

public static final byte SPM_UPWD_MATCHES_SPWD
See Also:
Constant Field Values

SPM_SPWD_SET

public static final byte SPM_SPWD_SET
See Also:
Constant Field Values

SPM_SPWD_IS_CLEARTEXT

public static final byte SPM_SPWD_IS_CLEARTEXT
See Also:
Constant Field Values

SPM_SPWD_MATCHES_NDS

public static final byte SPM_SPWD_MATCHES_NDS
See Also:
Constant Field Values
Constructor Detail

NMASPwdStatus

public NMASPwdStatus()
Method Detail

setUniversalPwdStatus

public void setUniversalPwdStatus(int uPwdStatus)
setUniversalPwdStatus() is a set method used by the underlying LDAP extension to set the universalPwdStatus member of this object to the value read from eDirectory. This method does not write any data to eDirectory.

Parameters:
uPwdStatus -

getUniversalPwdStatus

public int getUniversalPwdStatus()
Method to retrieve an integer containing the flags holding the Universal Password status

Returns:

isSpmUpwdEnabled

public boolean isSpmUpwdEnabled()
This method report if Universal Password is enabled

Returns:

isSpmUpwdSet

public boolean isSpmUpwdSet()
This method reports if the Universal Password is set

Returns:

isSpmUpwdHistoryFull

public boolean isSpmUpwdHistoryFull()
This method reports whether or not the Universal Password history is full

Returns:

isSpmUpwdMatchesNDS

public boolean isSpmUpwdMatchesNDS()
This method reports whether or not the Universal Password matches the NDS Password

Returns:

isSpmUpwdOlderThanNDS

public boolean isSpmUpwdOlderThanNDS()
This method reports whether or not the Universal Password is older than the NDS Password

Returns:

isSpmUpwdMatchesSPWD

public boolean isSpmUpwdMatchesSPWD()
This method returns true if the Universal Password matches the Simple Password

Returns:

setSimplePwdStatus

public void setSimplePwdStatus(int sPwdStatus)
setSimplePwdStatus() is a set method used by the underlying LDAP extension to set the simplePwdStatus member of this object to the value read from eDirectory. This method does not write any data to eDirectory.

Parameters:
sPwdStatus -

getSimplePwdStatus

public int getSimplePwdStatus()
This method returns an integer containing the flags for the Simple Password status

Returns:

isSpmSpwdSet

public boolean isSpmSpwdSet()
This method report whether or not the Simple Password is set

Returns:

isSpmSpwdClearText

public boolean isSpmSpwdClearText()
This method returns true if the Simple Password is in clear text format

Returns:

isSpmSpwdMatchesNDS

public boolean isSpmSpwdMatchesNDS()
This method returns true if the Simple Password matches the NDS Password

Returns: