public class SecurityModels extends Object
SecurityModels class is a collection of all
supported security models of a SNMP entity.| Modifier | Constructor and Description |
|---|---|
protected |
SecurityModels() |
| Modifier and Type | Method and Description |
|---|---|
void |
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
SecurityModels. |
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)
SecurityModels.models - an array of SecurityModel instances.public void 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 © 2016 SNMP4J.org. All Rights Reserved.