|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The SnmpSecurityModel interface defines methods that all security models must implement to be used in jSNMP. For example, the user-based Security Model, as defined in SNMPv3, must have its own implementation of this interface. Each implemenation of Security Model must have its own implementations of SnmpSecurityToken and SnmpSecurityInfo.
Each Security Model object must have a unique ID in order to register with the SnmpSecurityManager. The ID is the integer placed into the msgSecurityModel field in an SNMPv3 header. The IDs for USM and CSM are defined in this interface.
SnmpAuthoritativeSession
,
SnmpSecurityManager
,
SnmpSecurityInfo
,
SnmpSecurityToken
Field Summary | |
static int |
CSMv1_ID
1 |
static int |
CSMv2c_ID
2 |
static int |
USM_ID
3 |
Method Summary | |
SnmpSecurityToken |
createSecurityToken(SnmpAuthoritativeSession cSnmpAuthoritativeSession)
Creates a security token for an authoritative session. |
int |
getID()
Returns the unique identifier, used in an SNMPv3 header, of the security model. |
byte[] |
processIncomingMessage(SnmpAuthoritativeSession cSnmpAuthoritativeSession,
java.net.DatagramPacket cDatagramPacket)
Processes an incoming message. |
com.outbackinc.util.ds.Pair |
processOutgoingMessage(SnmpAuthoritativeSession cSnmpAuthoritativeSession,
int iMtu,
byte[] cbMessageHeader,
byte[] cbScopedPDU)
Processes a message to be sent out to an agent. |
boolean |
supportedBySnmpVersion(int iSnmpVersion)
Determines if the given SNMP version supports this security model. |
Field Detail |
public static final int CSMv1_ID
public static final int CSMv2c_ID
public static final int USM_ID
Method Detail |
public int getID()
public com.outbackinc.util.ds.Pair processOutgoingMessage(SnmpAuthoritativeSession cSnmpAuthoritativeSession, int iMtu, byte[] cbMessageHeader, byte[] cbScopedPDU) throws SnmpSecurityException
cSnmpAuthoritativeSession
- specific sessioniMtu
- MTU of sending socketcbMessageHeader
- an ASN.1 encoded header (global data) for the PDU, excluding the security parameters.cbScopedPDU
- the scoped PDU of the message, which will be encrypted if encryption is used.public byte[] processIncomingMessage(SnmpAuthoritativeSession cSnmpAuthoritativeSession, java.net.DatagramPacket cDatagramPacket) throws SnmpSecurityException
cSnmpAuthoritativeSession
- specific sessioncDatagramPacket
- the entire Datagram message, ASN.1 encodedpublic SnmpSecurityToken createSecurityToken(SnmpAuthoritativeSession cSnmpAuthoritativeSession) throws SnmpSecurityException
cSnmpAuthoritativeSession
- the session that the security model will create a token forpublic boolean supportedBySnmpVersion(int iSnmpVersion)
iSnmpVersion
- SNMP version
|
|||||||||
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.