org.snmp4j.security
Class SNMPv3SecurityModel

java.lang.Object
  extended by org.snmp4j.security.SNMPv3SecurityModel
All Implemented Interfaces:
SecurityModel
Direct Known Subclasses:
TSM, USM

public abstract class SNMPv3SecurityModel
extends java.lang.Object
implements SecurityModel

The abstract class SNMPv3SecurityModel implements common methods and fields for security models for the SNMPv3 message processing model.

Since:
2.0
Version:
2.0
Author:
Frank Fock

Field Summary
protected  OctetString localEngineID
           
 
Fields inherited from interface org.snmp4j.security.SecurityModel
SECURITY_MODEL_ANY, SECURITY_MODEL_SNMPv1, SECURITY_MODEL_SNMPv2c, SECURITY_MODEL_TSM, SECURITY_MODEL_USM
 
Constructor Summary
SNMPv3SecurityModel()
           
 
Method Summary
protected static byte[] buildMessageBuffer(BERInputStream scopedPDU)
           
protected static byte[] buildWholeMessage(Integer32 snmpVersion, byte[] scopedPdu, byte[] globalData, SecurityParameters securityParameters)
           
 OctetString getLocalEngineID()
          Returns the local engine ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.snmp4j.security.SecurityModel
generateRequestMessage, generateResponseMessage, getID, hasAuthoritativeEngineID, newSecurityParametersInstance, newSecurityStateReference, processIncomingMsg, supportsEngineIdDiscovery
 

Field Detail

localEngineID

protected OctetString localEngineID
Constructor Detail

SNMPv3SecurityModel

public SNMPv3SecurityModel()
Method Detail

getLocalEngineID

public OctetString getLocalEngineID()
Returns the local engine ID.

Returns:
the local engine ID.
Since:
1.2

buildWholeMessage

protected static byte[] buildWholeMessage(Integer32 snmpVersion,
                                          byte[] scopedPdu,
                                          byte[] globalData,
                                          SecurityParameters securityParameters)
                                   throws java.io.IOException
Throws:
java.io.IOException

buildMessageBuffer

protected static byte[] buildMessageBuffer(BERInputStream scopedPDU)
                                    throws java.io.IOException
Throws:
java.io.IOException

Copyright 2005-2011 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.