com.sun.management.snmp
Interface UserAcl

All Known Implementing Classes:
JdmkUserAcl

public interface UserAcl

Defines the user based ACL used by the SNMP protocol adaptor.

Since:
Java DMK 5.1

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

Method Detail

getName

String getName()
Returns the name of the ACL.

Returns:
The name of the ACL.

checkReadPermission

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.

checkReadPermission

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.

checkContextName

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.

checkWritePermission

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.

checkWritePermission

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.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.