public class SecurityModels
extends java.lang.Object
SecurityModels
class is a collection of all
supported security models of a SNMP entity.Constructor | Description |
---|---|
SecurityModels() |
Modifier and Type | Method | Description |
---|---|---|
SecurityModels |
addSecurityModel(SecurityModel model) |
Adds a security model to the central repository of security models.
|
static SecurityModels |
getCollection(SecurityModel[] models) |
Gets the SecurityModels collection instance that contains the supplied
SecurityModel s. |
static SecurityModels |
getInstance() |
Gets the security singleton instance.
|
SecurityModel |
getSecurityModel(Integer32 id) |
Returns a security model from the central repository of security models.
|
SecurityModel |
removeSecurityModel(Integer32 id) |
Removes a security model from the central repository of security models.
|
public static SecurityModels getInstance()
SecurityModels
instance.public static SecurityModels getCollection(SecurityModel[] models)
SecurityModel
s.models
- an array of SecurityModel
instances.public SecurityModels addSecurityModel(SecurityModel model)
model
- a SecurityModel
. If a security model with the same ID
alreadypublic SecurityModel removeSecurityModel(Integer32 id)
id
- the Integer32
ID of the security model to remove.SecurityModel
or null
if
id
is not registered.public SecurityModel getSecurityModel(Integer32 id)
id
- the Integer32
ID of the security model to return.id
associated SecurityModel
or
null
if no such model is registered.Copyright © 2018 SNMP4J.org. All rights reserved.