|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the methods that a session implementation must implement. These methods contain state information that can be used in orders sent by one user to one agent. A session refers to one particular host/port, one set of security information, and a particular SNMP version.
A session is used when placing orders, and orders placed using the same session are sent to the same host and port, and are sent using identical security mechanisms and parameters. For example, a session might have a USMSecurityInfo object, which contains a security level of AuthNoPriv, an authentication scheme of MD5, and a particular user-name and auth/priv. passwords. All orders sent using this session will be sent to the same agent/port using MD5 authentication with the user's authentication key, and no encryption.
Multiple sessions, with different or identical security information, can be associated with a single agent/port. SecurityInfo objects may be shared between sessions. For example, a single user may wish to use the same username/passwords, and auth/priv schemes for messages to several different hosts. One SecurityInfo object can be created, and shared among several sessions.
Method Summary | |
java.net.InetAddress |
getAgentAddress()
Get the SNMP agent's address used in this session. |
java.lang.String |
getAgentHostIPAddress()
Get the SNMP agent's IP address used in this session. |
java.lang.String |
getAgentHostName()
Get the SNMP agent's host name used in this session. |
int |
getAgentHostPort()
Get the SNMP agent's port used in this session. |
java.lang.String |
getContextEngineID()
Deprecated. as of jSNMP v3.1.1 by getContextEngineIDBytes() |
byte[] |
getContextEngineIDBytes()
Get the context engine ID used in this session. |
java.lang.String |
getContextName()
Deprecated. as of jSNMP v3.1.1 by getContextNameBytes() |
byte[] |
getContextNameBytes()
Get the context name used in this session. |
SnmpSecurityInfo |
getSnmpSecurityInfo()
Get the security information used in this session. |
SnmpSecurityToken |
getSnmpSecurityToken()
Get the security token for this session; the class type of the returned object is SecurityModel dependent, and the session object needs to know nothing about it. |
int |
getSnmpVersion()
Get the SNMP version used in this session. |
boolean |
isRemote()
Determine if session is 'remote' or 'local'. |
Method Detail |
public java.lang.String getAgentHostIPAddress()
public java.lang.String getAgentHostName()
public java.net.InetAddress getAgentAddress()
public int getAgentHostPort()
public int getSnmpVersion()
public SnmpSecurityInfo getSnmpSecurityInfo()
public byte[] getContextEngineIDBytes()
public byte[] getContextNameBytes()
public java.lang.String getContextEngineID()
public java.lang.String getContextName()
public SnmpSecurityToken getSnmpSecurityToken()
SnmpSecurityToken
public boolean isRemote()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Home Services Products Purchase Contact Us About Us Legal Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.