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

public String getName()
Returns the name of the ACL.

Returns:
The name of the ACL.

checkReadPermission

public 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

public 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

public 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

public 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

public 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.

FCS Release
jdmk-5_1-b34.2 2005.11.29_16:24:00_MET

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