public interface

UserAcl

com.sun.jmx.snmp.UserAcl

Class Overview

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.

Summary

Public Methods
abstract boolean checkContextName(String contextName)
Checks whether or not a context name is defined.
abstract boolean checkReadPermission(String user)
Checks whether or not the specified user has READ access.
abstract boolean checkReadPermission(String user, String contextName, int securityLevel)
Checks whether or not the specified user and context name have READ access.
abstract boolean checkWritePermission(String user, String contextName, int securityLevel)
Checks whether or not the specified user and context name have WRITE access.
abstract boolean checkWritePermission(String user)
Checks whether or not the specified user has WRITE access.
abstract String getName()
Returns the name of the ACL.

Public Methods

public abstract boolean checkContextName (String contextName)

Checks whether or not a context name is defined.

Parameters
contextName The context name to check.
Returns
  • true if the context is known, false otherwise.

public abstract boolean checkReadPermission (String user)

Checks whether or not the specified user has READ access.

Parameters
user The user name to check.
Returns
  • true if the host has read permission, false otherwise.

public abstract boolean checkReadPermission (String user, String contextName, int securityLevel)

Checks whether or not the specified user and context name have READ access.

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

public abstract boolean checkWritePermission (String user, String contextName, int securityLevel)

Checks whether or not the specified user and context name have WRITE access.

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

public abstract boolean checkWritePermission (String user)

Checks whether or not the specified user has WRITE access.

Parameters
user The user to check.
Returns
  • true if the user has write permission, false otherwise.

public abstract String getName ()

Returns the name of the ACL.

Returns
  • The name of the ACL.