|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.snmp.snmp2.vacm.VacmAccessEntry
This class represents the VacmAccessEntry. It represents the vacmAccessEntry OBJECT-TYPE (OID - .1.3.6.1.6.3.16.1.4.1) from the ViewBasedAccessControl. This class has the attributes like the contextPrefix, securityModel, securityLevel, contextMatch and the read, write, notify view names. These attributes represent the access rights, authorizing access to an SNMP context. The VacmGroupAccessEntry maintains a list of VacmAccessEntries for each groupName. It is to be noted that modifying any of attributes in this entry will not update the entries in other tables. For example while processing the isAccessAllowed the viewName from this entry is used to consult the VacmViewTreeTable and VacmFamilyEntry to select one entry that is included or excluded. If any of the view names are modified in this entry, then they are not correspondingly updated in the VacmFamilyEntry.
VacmGroupAccessEntry, Serialized Form| Field Summary | |
(package private) int |
contextMatch
The ContextMatch to match the ContextName with ContextPrefix |
(package private) byte[] |
contextPrefix
The ContextPrefix for the particular group,security model and level |
static int |
EXACT_MATCH
Constant values for VamcContextMatch = exact |
(package private) static int |
NONVOLATILE
|
(package private) byte[] |
notifyView
The NotifyViewName for the particular Context |
(package private) static int |
OTHER
The below are the various StorageType constants |
(package private) static int |
PERMANENT
|
static int |
PREFIX_MATCH
Constant values for VacmContextMatch = prefix |
(package private) static int |
READONLY
|
(package private) byte[] |
readView
The ReadViewName for the particular Context |
(package private) byte |
securityLevel
Security level for which access is required |
(package private) int |
securityModel
Security model for which access is required |
(package private) int |
storageType
The StorageType variable |
(package private) int |
userStatus
The userStatus variable |
(package private) static int |
VOLATILE
|
(package private) byte[] |
writeView
The WriteViewName for the particular Context |
| Constructor Summary | |
VacmAccessEntry(int model,
byte[] prefix,
byte secLevel)
Create a VacmAccessEntry using the specified securityModel, contextPrefix and securityLevel. |
|
| Method Summary | |
(package private) boolean |
checkNull(byte[] thisValue,
byte[] value)
|
(package private) int |
compareTo(VacmAccessEntry accessEntry)
Compares two access entry objects. |
boolean |
equals(VacmAccessEntry entry)
Compares two VacmAccessEntry Objects for equality. |
int |
getContextMatch()
Get the VacmAccessContextMatch value. |
byte[] |
getContextPrefix()
Get the contextPrefix value. |
byte[] |
getNotifyView()
Get the VacmAccessNotifyViewName. |
byte[] |
getReadView()
Get the VacmAccessReadViewName. |
byte |
getSecurityLevel()
Get the securityLevel. |
int |
getSecurityModel()
Get the securityModel value. |
int |
getStorageType()
Get the VACM Access StorageType associated with this VacmAccessEntry |
int |
getVacmAccessStatus()
Get the vacmAccessStatus associated with this VacmAccessEntry |
byte[] |
getWriteView()
Get the VacmAccessWriteViewName. |
void |
setContextMatch(int match)
Set the VacmAccessContextMatch value. |
void |
setNotifyView(byte[] notifyViewName)
Set the VacmAccessNotifyViewName. |
void |
setReadView(byte[] readViewName)
Set the VacmAccessReadViewName. |
void |
setStorageType(int storageType)
Set the VACM Access StorageType associated with this VacmAccessEntry |
void |
setVacmAccessStatus(int userStatus)
Set the vacmAccessStatus associated with this VacmAccessEntry. |
void |
setWriteView(byte[] writeViewName)
Set the VacmAccessWriteViewName. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int EXACT_MATCH
public static final int PREFIX_MATCH
byte[] contextPrefix
int securityModel
byte securityLevel
int contextMatch
byte[] readView
byte[] writeView
byte[] notifyView
static final int OTHER
static final int VOLATILE
static final int NONVOLATILE
static final int PERMANENT
static final int READONLY
int storageType
int userStatus
| Constructor Detail |
public VacmAccessEntry(int model,
byte[] prefix,
byte secLevel)
model - The VacmAccessSecurityModel for this object.prefix - The VacmAccessContextPrefix for this object.secLevel - The VacmAccessSecurityLeve for this object.| Method Detail |
public byte[] getContextPrefix()
public int getSecurityModel()
public byte getSecurityLevel()
public int getContextMatch()
public void setContextMatch(int match)
match - The VacmAccessContextMatch value.public byte[] getReadView()
public void setReadView(byte[] readViewName)
readViewName - The VacmAccessReadViewName to be set for this
object.public byte[] getWriteView()
public void setWriteView(byte[] writeViewName)
writeViewName - The VacmAccessWriteViewName to be set for
this object.public byte[] getNotifyView()
public void setNotifyView(byte[] notifyViewName)
notifyViewName - The VacmAccessNotifyViewName to be set for
this object.public int getStorageType()
public void setStorageType(int storageType)
public int getVacmAccessStatus()
public void setVacmAccessStatus(int userStatus)
userStatus - The row status value to be set on this entry.public boolean equals(VacmAccessEntry entry)
enrty - The object to compare this VacmAccessEntry against.int compareTo(VacmAccessEntry accessEntry)
accessEntry - The VacmAccessEntry
boolean checkNull(byte[] thisValue,
byte[] value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||