|
AXL Software™ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectTACACSSession
Session class to handle a TACACS+ session.
The session holds all the information for TACACS+ transactions. By setting various fields, like setService() the service type will be sent to the server. In fact all configuration of a TACACS+ transaction are handled by the session information.
Multiple sessions can be handled by the client by using multiple TACACSSession instances
on the same TACACSClient.
Sessions are created by the TACACSClient.createSession()
method. The callback argument is the class which implements the interface TACACSCallback.
When the TACACSClient receives a reply for this session it will invoke the method
TACACSCallbackacceptTACACSReply() with
the session used to send the packet as well as a reply Packet. The actual type of packet will depend
on the packet sent. For example if your code uses the
TACACSClient.accounting()
method the Packet will actually be a subclassed AccountingPacket with method specfic to the retreival
of accounting reply information.
Concurrent modification by the creator of the session and the call back class will cause unpredicatable results.
AccountingPacket,
AuthorizationPacket,
AuthenticationPacket,
TACACSCallback,
TACACSClient| Method Summary | |
void |
enableEncryption(boolean enable)
Enable or disable the encryption of the packet body for this session. |
boolean |
equals(Object o)
Determine if this Session is the same as another Session. |
int |
getAuthenicationType()
Get the authentication type. |
int |
getAuthenticationMethod()
Get the authentication method flags. |
int |
getAuthenticationType()
Get the authentication type. |
int |
getAuthenType()
Get the authentication type. |
byte[] |
getName()
Get the user name. |
int |
getPrivLevel()
Get the privilege level. |
String |
getServerMessage()
Get the server message from a REPLY message. |
int |
getService()
Get the service type. |
byte[] |
getSessionId()
Get the session identifier. |
String |
getUserMessage()
Get the user message from a CONTINUE message. |
void |
remove()
Remove this session. |
void |
setAuthenticationMethod(int authenMethod)
Set the authentication method flags. |
void |
setAuthenticationType(int authenType)
Set the authentication type. |
void |
setAuthenType(int authenType)
Set the authentication type. |
void |
setName(String name)
Set the User Name. |
void |
setPort(String port)
Set the port name. |
void |
setPrivLevel(int privLevel)
Set privilege level. |
void |
setRemoteAddress(String remAddr)
Set remote address. |
void |
setRequestAttributes(AttributeList requestList)
Set the request attributes going to the server. |
void |
setService(int serviceType)
Set the service type. |
String |
toString()
Return the string representation of the TACACSession. |
| Methods inherited from class Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public void setName(String name)
name - Name.public void setPort(String port)
The ASCII name of the client port on which the authentication is taking place. The value of this field is client specific. (For example, Cisco uses "tty10" to denote the tenth tty line and "Async10" to denote the tenth async interface).
port - Port name.public void setPrivLevel(int privLevel)
privLevel - Privilege level.public void setAuthenType(int authenType)
authenType - Authentication type.public int getAuthenType()
public void setRemoteAddress(String remAddr)
An ASCII string that describes the user's remote location. This field is optional (since the information may not be available). It is intended to hold a network address if the user is connected via a network, a caller ID is the user is connected via ISDN or a POTS, or any other remote location information that is available. This field value is client specified.
remAddr - Remote address.public void enableEncryption(boolean enable)
enable - True to enable encryption, false to disable it.
The default is to enable packet encryption.public void setAuthenticationType(int authenType)
authenType - Authentication type.public int getAuthenticationType()
public void setService(int serviceType)
serviceType - Service type.public int getService()
public byte[] getName()
public int getPrivLevel()
public void setRequestAttributes(AttributeList requestList)
requestList - Attributes to be sent to the server.public int getAuthenicationType()
public byte[] getSessionId()
public String getServerMessage()
public String getUserMessage()
public void setAuthenticationMethod(int authenMethod)
authenMethod - Authentication method flags.public int getAuthenticationMethod()
public void remove()
public boolean equals(Object o)
public String toString()
|
AXL Software™ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||