com.adventnet.agent.tl1.security
Class TL1UserSecurity

java.lang.Object
  |
  +--com.adventnet.agent.tl1.security.TL1UserSecurity

public class TL1UserSecurity
extends java.lang.Object

This class is used to store user related security views.


Constructor Summary
TL1UserSecurity()
          Default constructor.
 
Method Summary
(package private)  void clearInvalidAttempts()
          This method makes the counter of invalid attempts zero.
 java.util.Vector getChannels()
          Returns the various channels for the user permitted to access.
 java.lang.String getEncryptedPassword()
          Used to get the password as String in encrypted form.
(package private)  int getInvalidAttempts()
          This method returns how many intrusion attemps have been made before the current session enable.
 java.lang.String getLastLoginTime()
          Get the last login time and date of a session using this user id.
 java.util.Vector getLstoi()
          Get the records that are accessible to this UID.
 int getPage()
          Used to get the password aging period.
 long getPageSeconds()
          Get the total seconds from 1970 Jan to Password expiry period.
 int getPcnd()
          Used to get the interval expressed in days, signifyiny the number of days that a user can use the existing password before an update becomes mandatory.
 long getPcndSeconds()
          Get the total seconds from 1970 jan to Password stable period after expiry period.
 int getPcnn()
          Used to get a value ,signifyiny the number of times that a user can use the existing password before an update becomes mandatory.
 int getPcnnAvailable()
          Returns the count for the user to use the password after the page expiry.This gets decremented each and every time the user use the password after page expiry.
 int getPoint()
          Used to get the pass word obsolescence interval expressed in days.
 long getPointSeconds()
          Get the Password obsolescence interval in seconds.
 java.lang.String getState()
          Used to get the state of security mechanism.
 java.util.Vector getUap()
          Used to get the user access privilege.(A user is allowed to have up to 25 access privileges.Each user access privilege may be up to 8 alphanumeric characters long).
 int getUout()
          Returns the aging interval of userID expressed in days.
 long getUoutSeconds()
          Get the total seconds from 1970 jan to user id expiry date.
 java.lang.String getUserName()
          Used to get the user name.
(package private)  void incInvalidAttempts()
          This method increments the counter of invalid attempts whenver intrusion attempt is made.
 boolean isPcnn()
          Returns true if Pcnn is selected.
 void setChannels(java.util.Vector channels)
          Set the Vector of channels for which the user has the permission to access.
 void setEncryptedPassword(java.lang.String pWord)
          Used to set Encrypted password.
 void setIsPcnn(boolean flag)
          Sets Pcnn if it is selected, which means pcnn is selected.
 void setLastLoginTime(java.lang.String time)
          Sets the last login time and date for a user in a session.
 void setLstoi(java.util.Vector records)
          Set the records that are accessible to this UID.
 void setPage(int period)
          Used to set the PassWordAgingPeriod.
 void setPageSeconds(long seconds)
          Set The total seconds for password expiry
 void setPcnd(int interval)
          Used to set the interval expressed in days,signifying the number of days that a user can use the existing password before an update becomes mandatory.
 void setPcndSeconds(long seconds)
          Set the total seconds for Password stability after expiry date
 void setPcnn(int times)
          Used to set a value ,signifying the number of times that a user can use the existing password before an update becomes mandatory.
 void setPcnnAvailable(int i)
          Sets the pcnn count available.
 void setPoint(int period)
          Used to set the password obsolescence interval.
 void setPointSeconds(long seconds)
          Set the Password obsolescence interval in seconds.
 void setState(java.lang.String state)
          Used to set the user name.
 void setUap(java.util.Vector access)
          Used to set the user access privileges.
 void setUout(int interval)
          Set the aging interval for the user Id.
 void setUoutSeconds(long seconds)
          Set the total seconds for the User id exsistence.
 void setUserName(java.lang.String name)
          Used to set the user name.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TL1UserSecurity

public TL1UserSecurity()
Default constructor. currently used to add the default values in the vector element.
Method Detail

getUserName

public java.lang.String getUserName()
Used to get the user name.

setUserName

public void setUserName(java.lang.String name)
Used to set the user name.
Parameters:
name - - userName

getState

public java.lang.String getState()
Used to get the state of security mechanism.

setState

public void setState(java.lang.String state)
Used to set the user name.
Parameters:
name - - userName

getEncryptedPassword

public java.lang.String getEncryptedPassword()
Used to get the password as String in encrypted form.

setEncryptedPassword

public void setEncryptedPassword(java.lang.String pWord)
Used to set Encrypted password.
Parameters:
pWord - - password

getPage

public int getPage()
Used to get the password aging period.

setPage

public void setPage(int period)
Used to set the PassWordAgingPeriod.
Parameters:
period - - duration of the password aging

getPcnd

public int getPcnd()
Used to get the interval expressed in days, signifyiny the number of days that a user can use the existing password before an update becomes mandatory. Typically it is 7 days.

setPcnd

public void setPcnd(int interval)
Used to set the interval expressed in days,signifying the number of days that a user can use the existing password before an update becomes mandatory.
Parameters:
interval - - number of days for password aging

getPcnn

public int getPcnn()
Used to get a value ,signifyiny the number of times that a user can use the existing password before an update becomes mandatory. Typically it is 3 times.

setPcnn

public void setPcnn(int times)
Used to set a value ,signifying the number of times that a user can use the existing password before an update becomes mandatory.
Parameters:
times - - number of times for password aging

getPoint

public int getPoint()
Used to get the pass word obsolescence interval expressed in days. (when a user receives a prompt to change the PID, no old PID can be restored unless the interval POINT expires since that old PID became obsolete.)The longest such interval allowed is 999 days. Typically it us about 180 days.

setPoint

public void setPoint(int period)
Used to set the password obsolescence interval.
Parameters:
period - - duration of password obsolescence

getUout

public int getUout()
Returns the aging interval of userID expressed in days. The longest interval allowed is 999 days.Typically it is between 45-90 days. Here the default value is 90 days.

setUout

public void setUout(int interval)
Set the aging interval for the user Id.
Parameters:
interval - - User Name expiry period

getChannels

public java.util.Vector getChannels()
Returns the various channels for the user permitted to access.

setChannels

public void setChannels(java.util.Vector channels)
Set the Vector of channels for which the user has the permission to access.

getUap

public java.util.Vector getUap()
Used to get the user access privilege.(A user is allowed to have up to 25 access privileges.Each user access privilege may be up to 8 alphanumeric characters long).

setUap

public void setUap(java.util.Vector access)
Used to set the user access privileges.
Parameters:
access - - User Access Privilege

getLstoi

public java.util.Vector getLstoi()
Get the records that are accessible to this UID.

setLstoi

public void setLstoi(java.util.Vector records)
Set the records that are accessible to this UID.

getPageSeconds

public long getPageSeconds()
Get the total seconds from 1970 Jan to Password expiry period.

setPageSeconds

public void setPageSeconds(long seconds)
Set The total seconds for password expiry

getPcndSeconds

public long getPcndSeconds()
Get the total seconds from 1970 jan to Password stable period after expiry period.

setPcndSeconds

public void setPcndSeconds(long seconds)
Set the total seconds for Password stability after expiry date
Parameters:
seconds - - Password expiry in Days expressed in terms of seconds

getPointSeconds

public long getPointSeconds()
Get the Password obsolescence interval in seconds.

setPointSeconds

public void setPointSeconds(long seconds)
Set the Password obsolescence interval in seconds.

getUoutSeconds

public long getUoutSeconds()
Get the total seconds from 1970 jan to user id expiry date.

setUoutSeconds

public void setUoutSeconds(long seconds)
Set the total seconds for the User id exsistence.
Parameters:
seconds - - UOUT period interms of seconds

isPcnn

public boolean isPcnn()
Returns true if Pcnn is selected. Either Pcnn or Pcnd can be selected at a time.
Returns:
Returns true if pcnn is selected, else false

setIsPcnn

public void setIsPcnn(boolean flag)
Sets Pcnn if it is selected, which means pcnn is selected.
Parameters:
flag - - Sets PCNN as true, if flag is true

setPcnnAvailable

public void setPcnnAvailable(int i)
Sets the pcnn count available. The number of times the user have the permission to use the password after Page expiry.
Parameters:
i - - number of times left

getPcnnAvailable

public int getPcnnAvailable()
Returns the count for the user to use the password after the page expiry.This gets decremented each and every time the user use the password after page expiry.

getLastLoginTime

public java.lang.String getLastLoginTime()
Get the last login time and date of a session using this user id.

setLastLoginTime

public void setLastLoginTime(java.lang.String time)
Sets the last login time and date for a user in a session.
Parameters:
time - - Last login date and time

incInvalidAttempts

void incInvalidAttempts()
This method increments the counter of invalid attempts whenver intrusion attempt is made.

clearInvalidAttempts

void clearInvalidAttempts()
This method makes the counter of invalid attempts zero.

getInvalidAttempts

int getInvalidAttempts()
This method returns how many intrusion attemps have been made before the current session enable.