FileDocCategorySizeDatePackage
UserAcl.javaAPI DocJava SE 5 API2594Fri Aug 26 14:55:04 BST 2005com.sun.jmx.snmp

UserAcl

public interface UserAcl
Defines the user based ACL used by the SNMP protocol adaptor.

This API is a Sun Microsystems internal API and is subject to change without notice.

since
1.5

Fields Summary
Constructors Summary
Methods Summary
public booleancheckContextName(java.lang.String contextName)
Checks whether or not a context name is defined.

param
contextName The context name to check.
return
true if the context is known, false otherwise.

public booleancheckReadPermission(java.lang.String user)
Checks whether or not the specified user has READ access.

param
user The user name to check.
return
true if the host has read permission, false otherwise.

public booleancheckReadPermission(java.lang.String user, java.lang.String contextName, int securityLevel)
Checks whether or not the specified user and context name have READ access.

param
user The user name to check.
param
contextName The context name associated with the user.
param
securityLevel The request security level.
return
true if the pair (user, context) has read permission, false otherwise.

public booleancheckWritePermission(java.lang.String user)
Checks whether or not the specified user has WRITE access.

param
user The user to check.
return
true if the user has write permission, false otherwise.

public booleancheckWritePermission(java.lang.String user, java.lang.String contextName, int securityLevel)
Checks whether or not the specified user and context name have WRITE access.

param
user The user name to check.
param
contextName The context name associated with the user.
param
securityLevel The request security level.
return
true if the pair (user, context) has write permission, false otherwise.

public java.lang.StringgetName()
Returns the name of the ACL.

return
The name of the ACL.