com.adventnet.agent.tl1.security
Class TL1ChannelSecurity

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

public class TL1ChannelSecurity
extends java.lang.Object

This class is used to store channel related security views.


Constructor Summary
TL1ChannelSecurity()
          Default constructor.
 
Method Summary
 java.lang.String getChannelId()
          Used to get the channel id.
 java.util.Vector getChap()
          Used to get the channel access privilege.(A channel is allowed to have up to 25 access privileges.Each user access privilege may be up to 8 alphanumeric characters long).
 java.lang.String getDURAL()
          Used to get the duration of "alert condition" in seconds during which the channel is suspected for intrusion attempt is locked out.
 int getMXINV()
          Used to get the maximum number of invalid session setup attempts.
 java.lang.String getState()
          Used to get the state of channel.
 int getTMOUT()
          Get the time out interval.The session is logged off if there is no message transaction between NWNS and the user over the specified time out interval.
 void setChannelId(java.lang.String id)
          Used to set the channel id.
 void setChap(java.util.Vector access)
          Used to set the Channel access privileges.
 void setDURAL(java.lang.String alertStr)
          Set the duration of "alert condition" in seconds during which the channel is suspected for intrusion attempt is locked out.
 void setMXINV(int invalidCount)
          Set the maximum number of invalid session setup attempts.
 void setState(java.lang.String state)
          Used to set the user name.
 void setTMOUT(int times)
          Set the time out interval.The session is logged off if there is no message transaction between NWNS and the user over the specified time out interval.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TL1ChannelSecurity

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

getChannelId

public java.lang.String getChannelId()
Used to get the channel id.
Returns:
Returns Channel name (Id)

setChannelId

public void setChannelId(java.lang.String id)
Used to set the channel id.
Parameters:
id - - The channel id.

getState

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

setState

public void setState(java.lang.String state)
Used to set the user name.
Parameters:
state - - the status whether Inservice or OutOfService

getMXINV

public int getMXINV()
Used to get the maximum number of invalid session setup attempts.

setMXINV

public void setMXINV(int invalidCount)
Set the maximum number of invalid session setup attempts.
Parameters:
invalidCount - - Number of Invalid Attempts

getDURAL

public java.lang.String getDURAL()
Used to get the duration of "alert condition" in seconds during which the channel is suspected for intrusion attempt is locked out. It should not be more than one second.

setDURAL

public void setDURAL(java.lang.String alertStr)
Set the duration of "alert condition" in seconds during which the channel is suspected for intrusion attempt is locked out. It should not be more than one second.
Parameters:
alertStr - - The string should be of the format HH-MM-SS.

getTMOUT

public int getTMOUT()
Get the time out interval.The session is logged off if there is no message transaction between NWNS and the user over the specified time out interval. The interval should be less than or equal to 99 minutes.

setTMOUT

public void setTMOUT(int times)
Set the time out interval.The session is logged off if there is no message transaction between NWNS and the user over the specified time out interval.
Parameters:
times - - The interval should be less than or equal to 99 minutes.

getChap

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

setChap

public void setChap(java.util.Vector access)
Used to set the Channel access privileges.
Parameters:
access - - Access Privilege which can be upto 25 access prvileges with 8 AN characters long