Package hec.security

Class PasswordEntry

java.lang.Object
hec.security.PasswordEntry
All Implemented Interfaces:
Serializable

public class PasswordEntry extends Object implements Serializable
A Password Entry is a row of the a password file for a user.
See Also:
  • Constructor Details

    • PasswordEntry

      public PasswordEntry(String userName, boolean commentedOut)
  • Method Details

    • getPluginData

      public Map<Serializable,Serializable> getPluginData()
      Returns a properties object for this password entry. This properties object can be modified, entried added, changed, etc. The properties data will not be written to file as part from normal password entry usage but is instead specific to login server plugins that need to know more detail than what is contained in regular password entry data members.
    • getUserName

      public String getUserName()
    • getDbUser

      public String getDbUser()
    • getDbPassword

      public String getDbPassword()
    • setUserName

      public void setUserName(String userName)
      This method should not normally be called.
      Parameters:
      userName -
    • setDbUser

      public void setDbUser(String dbUser)
    • setDbPassword

      public void setDbPassword(String dbPassword)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String newPassword)
    • getUserTypeNames

      public Vector<String> getUserTypeNames()
    • setUserTypeNames

      public void setUserTypeNames(Vector<String> userTypes)
    • addUserType

      public void addUserType(String userTypeName)
    • removeUserType

      public void removeUserType(String userTypeName)
    • clearUserTypes

      public void clearUserTypes()
    • getUserFullName

      public String getUserFullName()
    • setUserFullName

      public void setUserFullName(String fullName)
    • setCreatedBy

      public void setCreatedBy(String createdBy)
    • getCreatedBy

      public String getCreatedBy()
    • getUserDir

      public String getUserDir()
    • setUserDir

      public void setUserDir(String userDir)
    • incrementLoginFailureCnt

      public void incrementLoginFailureCnt()
    • getLoginFailureCnt

      public int getLoginFailureCnt()
    • resetLoginFailureCnt

      public void resetLoginFailureCnt()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(PasswordEntry that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isLocked

      public boolean isLocked()
    • setLocked

      public void setLocked(boolean locked)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • set

      public void set(PasswordEntry pe)
      Sets this password entry to the argument values. Does not modify the login failure count.
    • writeLine

      public void writeLine(Writer writer) throws IOException
      Throws:
      IOException
    • writeUserTypes

      public void writeUserTypes(Writer writer) throws IOException
      Throws:
      IOException
    • parseLine

      public static PasswordEntry parseLine(String line)
      username:password:groupnames:user full name::
    • getEdipi

      public long getEdipi()
    • setEdipi

      public void setEdipi(long edipi)