public class SecurityModels
extends java.lang.Object
SecurityModels
class is a collection of all
supported security models of a SNMP entity.Modifier and Type | Field and Description |
---|---|
private static SecurityModels |
instance |
private java.util.Map<Integer32,SecurityModel> |
securityModels |
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
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.
|
private java.util.Map<Integer32,SecurityModel> securityModels
private static SecurityModels instance
public static SecurityModels getInstance()
SecurityModels
instance.public static SecurityModels getCollection(SecurityModel[] models)
SecurityModel
s.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.