|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.snmp2.vacm.VacmGroupEntry
This class represents VacmSecurityToGroupEntry. It represents the vacmSecurityToGroupEntry OBJECT-TYPE (OID - .1.3.6.1.6.3.16.1.2.1) from ViewBasedAccessControl. This class has the attributes securitymodel, securityName and GroupName. It maps the combination of a securityModel and securityName into a groupName which is used to define an access control policy for a group of principals. 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 groupName from this entry is used to consult the VacmGroupAccessTable and VacmAccessEntry to select a single entry that contains three MIB views. If the groupName is modified in this entry, then they are not correspondingly updated in the VacmAccessEntry and VacmGroupAccessEntry.
VacmGroupTable
, Serialized FormConstructor Summary | |
VacmGroupEntry(int model,
byte[] name)
Creates a VacmGroupEntry with the specified security model and security name. |
Method Summary | |
java.lang.Object |
getKey()
Retrieve the key for this vacm Group object. |
static java.lang.Object |
getKey(int secModel,
byte[] secName)
Retrieve the key for this vacm Group object. |
int |
getSecurityModel()
Get the securityModel value associated with this object. |
byte[] |
getSecurityName()
Get the securityName value associated with this object. |
byte[] |
getVacmGroupName()
Get the VacmGroupName value. |
int |
getVacmGroupStatus()
Get the vacmSecurityToGroupStatus associated with this VacmGroupEntry |
int |
getVacmGroupStorageType()
Get the StorageType associated with this VacmGroupEntry |
void |
print()
Prints the securityModel, securityName and groupName. |
void |
setVacmGroupName(byte[] groupName)
Set the groupName value. |
void |
setVacmGroupStatus(int userStatus)
Set the vacmSecurityToGroupStatus associated with this VacmGroupEntry. |
void |
setVacmGroupStorageType(int storageType)
Set the StorageType associated with this VacmGroupEntry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VacmGroupEntry(int model, byte[] name)
model
- The VacmSecurityModel for this object.name
- The VacmSecurityName for this object.java.lang.NullPointerException
- if the name is null.Method Detail |
public int getSecurityModel()
public byte[] getSecurityName()
public byte[] getVacmGroupName()
public void setVacmGroupName(byte[] groupName)
groupName
- The vacm group name to be associated with this
object.java.lang.NullPointerException
- if the groupName is null.public int getVacmGroupStorageType()
public void setVacmGroupStorageType(int storageType)
public int getVacmGroupStatus()
public void setVacmGroupStatus(int userStatus)
userStatus
- The row status value to be set on this entry.public java.lang.Object getKey()
public static java.lang.Object getKey(int secModel, byte[] secName)
secModel
- The VacmSecurityModelsecName
- The VacmSecurityNamejava.lang.NullPointerException
- if the secName is null.public void print()
java.lang.NullPointerException
- if the securityName or groupName is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |