- java.lang.Object
-
- org.snmp4j.agent.mo.snmp.dh.SnmpUsmDhObjectsMib
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SnmpUsmDhObjectsMib.DHKeyChange
class
SnmpUsmDhObjectsMib.UsmDHKickstartEntryRow
class
SnmpUsmDhObjectsMib.UsmDHParameters
class
SnmpUsmDhObjectsMib.UsmDHUserKeyEntryRow
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
SnmpUsmDhObjectsMib()
Constructs a SnmpUsmDhObjectsMib instance without actually creating itsManagedObject
instances.protected
SnmpUsmDhObjectsMib(MOFactory moFactory)
Constructs a SnmpUsmDhObjectsMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
).SnmpUsmDhObjectsMib(MOFactory moFactory, org.snmp4j.security.USM usm, UsmMIB usmMIB, VacmMIB vacmMIB, Collection<DHKickstartParameters> dhKickstartParameters)
Constructs a SnmpUsmDhObjectsMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImportedTCsToFactory(MOFactory moFactory)
protected void
addTCsToFactory(MOFactory moFactory)
protected void
createMO(MOFactory moFactory)
Create the ManagedObjects defined for this MIB module using the specifiedMOFactory
.org.snmp4j.security.dh.DHParameters
getDHParameters()
protected org.snmp4j.smi.OctetString
getGroupNameForVacmRole(String role)
Return the VACM group name for the specified VACM role.MOTable<SnmpUsmDhObjectsMib.UsmDHKickstartEntryRow,MOColumn,MOTableModel<SnmpUsmDhObjectsMib.UsmDHKickstartEntryRow>>
getUsmDHKickstartEntry()
UsmDHParametersImpl
getUsmDHParameters()
MOTable<SnmpUsmDhObjectsMib.UsmDHUserKeyEntryRow,MOColumn,MOTableModel<SnmpUsmDhObjectsMib.UsmDHUserKeyEntryRow>>
getUsmDHUserKeyEntry()
protected void
initDHKickstart(Collection<DHKickstartParameters> dhKickstartParametersList)
void
registerMOs(MOServer server, org.snmp4j.smi.OctetString context)
Registers the managed objects of this group with the server for the supplied context.void
setBaseTableUsmDHUserKeyEntry(DefaultMOTable<UsmMIB.UsmTableRow,MOColumn,DefaultMOMutableTableModel<UsmMIB.UsmTableRow>> baseTable)
void
unregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)
Unregisters the managed objects of this group from the supplied server and from the supplied context.
-
-
-
Field Detail
-
oidSnmpUsmDhObjectsMib
public static final org.snmp4j.smi.OID oidSnmpUsmDhObjectsMib
OID of this MIB module for usage which can be used for its identification.
-
oidUsmDHParameters
public static final org.snmp4j.smi.OID oidUsmDHParameters
-
oidUsmDHUserKeyEntry
public static final org.snmp4j.smi.OID oidUsmDHUserKeyEntry
-
oidUsmUserEngineID
public static final org.snmp4j.smi.OID oidUsmUserEngineID
-
oidUsmUserName
public static final org.snmp4j.smi.OID oidUsmUserName
-
tcModuleSnmpUsmDhObjectsMib
public static final String tcModuleSnmpUsmDhObjectsMib
- See Also:
- Constant Field Values
-
tcDefDHKeyChange
public static final String tcDefDHKeyChange
- See Also:
- Constant Field Values
-
colUsmDHUserAuthKeyChange
public static final int colUsmDHUserAuthKeyChange
- See Also:
- Constant Field Values
-
colUsmDHUserOwnAuthKeyChange
public static final int colUsmDHUserOwnAuthKeyChange
- See Also:
- Constant Field Values
-
colUsmDHUserPrivKeyChange
public static final int colUsmDHUserPrivKeyChange
- See Also:
- Constant Field Values
-
colUsmDHUserOwnPrivKeyChange
public static final int colUsmDHUserOwnPrivKeyChange
- See Also:
- Constant Field Values
-
idxUsmDHUserAuthKeyChange
public static final int idxUsmDHUserAuthKeyChange
- See Also:
- Constant Field Values
-
idxUsmDHUserOwnAuthKeyChange
public static final int idxUsmDHUserOwnAuthKeyChange
- See Also:
- Constant Field Values
-
idxUsmDHUserPrivKeyChange
public static final int idxUsmDHUserPrivKeyChange
- See Also:
- Constant Field Values
-
idxUsmDHUserOwnPrivKeyChange
public static final int idxUsmDHUserOwnPrivKeyChange
- See Also:
- Constant Field Values
-
oidUsmDHKickstartEntry
public static final org.snmp4j.smi.OID oidUsmDHKickstartEntry
-
oidUsmDHKickstartIndex
public static final org.snmp4j.smi.OID oidUsmDHKickstartIndex
-
tcModuleSnmpFrameworkMib
public static final String tcModuleSnmpFrameworkMib
- See Also:
- Constant Field Values
-
tcDefSnmpAdminString
public static final String tcDefSnmpAdminString
- See Also:
- Constant Field Values
-
colUsmDHKickstartMyPublic
public static final int colUsmDHKickstartMyPublic
- See Also:
- Constant Field Values
-
colUsmDHKickstartMgrPublic
public static final int colUsmDHKickstartMgrPublic
- See Also:
- Constant Field Values
-
colUsmDHKickstartSecurityName
public static final int colUsmDHKickstartSecurityName
- See Also:
- Constant Field Values
-
idxUsmDHKickstartMyPublic
public static final int idxUsmDHKickstartMyPublic
- See Also:
- Constant Field Values
-
idxUsmDHKickstartMgrPublic
public static final int idxUsmDHKickstartMgrPublic
- See Also:
- Constant Field Values
-
idxUsmDHKickstartSecurityName
public static final int idxUsmDHKickstartSecurityName
- See Also:
- Constant Field Values
-
usm
protected org.snmp4j.security.USM usm
-
usmMIB
protected UsmMIB usmMIB
-
vacmMIB
protected VacmMIB vacmMIB
-
dhKickstartParameters
protected Collection<DHKickstartParameters> dhKickstartParameters
-
dhOperations
protected org.snmp4j.security.dh.DHOperations dhOperations
-
-
Constructor Detail
-
SnmpUsmDhObjectsMib
protected SnmpUsmDhObjectsMib()
Constructs a SnmpUsmDhObjectsMib instance without actually creating itsManagedObject
instances. This has to be done in a sub-class constructor or after construction by callingcreateMO(MOFactory moFactory)
.
-
SnmpUsmDhObjectsMib
protected SnmpUsmDhObjectsMib(MOFactory moFactory)
Constructs a SnmpUsmDhObjectsMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
).- Parameters:
moFactory
- theMOFactory
to be used to create the managed objects for this module.
-
SnmpUsmDhObjectsMib
public SnmpUsmDhObjectsMib(MOFactory moFactory, org.snmp4j.security.USM usm, UsmMIB usmMIB, VacmMIB vacmMIB, Collection<DHKickstartParameters> dhKickstartParameters)
Constructs a SnmpUsmDhObjectsMib instance and actually creates itsManagedObject
instances using the suppliedMOFactory
(by callingcreateMO(MOFactory moFactory)
).- Parameters:
moFactory
- theMOFactory
to be used to create the managed objects for this module.usm
- the USM where user authentication and privacy are to be configured using Diffie Helman key exchange.usmMIB
- the USM MIB where user authentication and privacy are to be configured using Diffie Helman key exchange.vacmMIB
- the VACM MIB that will receive preinstalled entries as defined by usmDHKeyMIBNCompliance when the objects of this MIB are being registered.dhKickstartParameters
- the securityName to public key mappings needed to initialize Diffie Hellman key exchange.
-
-
Method Detail
-
createMO
protected void createMO(MOFactory moFactory)
Create the ManagedObjects defined for this MIB module using the specifiedMOFactory
.- Parameters:
moFactory
- theMOFactory
instance to use for object creation.
-
getUsmDHParameters
public UsmDHParametersImpl getUsmDHParameters()
-
getUsmDHUserKeyEntry
public MOTable<SnmpUsmDhObjectsMib.UsmDHUserKeyEntryRow,MOColumn,MOTableModel<SnmpUsmDhObjectsMib.UsmDHUserKeyEntryRow>> getUsmDHUserKeyEntry()
-
setBaseTableUsmDHUserKeyEntry
public void setBaseTableUsmDHUserKeyEntry(DefaultMOTable<UsmMIB.UsmTableRow,MOColumn,DefaultMOMutableTableModel<UsmMIB.UsmTableRow>> baseTable)
-
getUsmDHKickstartEntry
public MOTable<SnmpUsmDhObjectsMib.UsmDHKickstartEntryRow,MOColumn,MOTableModel<SnmpUsmDhObjectsMib.UsmDHKickstartEntryRow>> getUsmDHKickstartEntry()
-
registerMOs
public void registerMOs(MOServer server, org.snmp4j.smi.OctetString context) throws DuplicateRegistrationException
Description copied from interface:MOGroup
Registers the managed objects of this group with the server for the supplied context.- Specified by:
registerMOs
in interfaceMOGroup
- Parameters:
server
- theMOServer
where to register the managed objects.context
- the context to use (may benull
if no specific context is selected).- Throws:
DuplicateRegistrationException
- if a managed object's scope (i.e. lower bound) is already registered at the server.
-
unregisterMOs
public void unregisterMOs(MOServer server, org.snmp4j.smi.OctetString context)
Description copied from interface:MOGroup
Unregisters the managed objects of this group from the supplied server and from the supplied context.- Specified by:
unregisterMOs
in interfaceMOGroup
- Parameters:
server
- theMOServer
where to unregister the managed objects.context
- the context to use (may benull
if no specific context is selected).
-
getDHParameters
public org.snmp4j.security.dh.DHParameters getDHParameters()
-
initDHKickstart
protected void initDHKickstart(Collection<DHKickstartParameters> dhKickstartParametersList)
-
getGroupNameForVacmRole
protected org.snmp4j.smi.OctetString getGroupNameForVacmRole(String role)
Return the VACM group name for the specified VACM role.- Parameters:
role
- a role name.- Returns:
- the group name for the role. By default, the role is returned as
OctetString
.
-
addTCsToFactory
protected void addTCsToFactory(MOFactory moFactory)
-
addImportedTCsToFactory
public void addImportedTCsToFactory(MOFactory moFactory)
-
-