Lines Matching refs:access

57  * methods based on an access level properties file containing username/access
58 * level pairs. The set of username/access level pairs is passed either as a
61 * represents a username, and the value of the property is the associated access
63 * has exactly one access level. The same access level can be shared by several
66 * <p>The supported access level values are {@code readonly} and
67 * {@code readwrite}. The {@code readwrite} access level can be
114 * #setMBeanServer} method after doing access checks based on read and
120 * file on disk containing the username/access level entries.
126 * @exception IllegalArgumentException if any of the supplied access
139 * MBeanServer requests to <code>mbs</code> after doing access checks
145 * file on disk containing the username/access level entries.
153 * @exception IllegalArgumentException if any of the supplied access
166 * #setMBeanServer} method after doing access checks based on read and
172 * username and access level of an incoming connection. The
178 * @param accessFileProps properties list containing the username/access
182 * <code>null</code> or if any of the supplied access level values differs
197 * #setMBeanServer} method after doing access checks based on read and
203 * username and access level of an incoming connection. The
209 * @param accessFileProps properties list containing the username/access
215 * <code>null</code> or if any of the supplied access level values differs
262 * <p>Refresh the set of username/access level entries.</p>
280 * @exception IllegalArgumentException if any of the supplied access
317 Access access = accessMap.get(p.getName());
318 if (access != null) {
322 ok = true; // all access entries imply read
325 ok = access.write;
328 ok = access.unregister;
329 if (!ok && access.write)
333 ok = checkCreateAccess(access, arg);
334 if (!ok && access.write)
345 "access level for requested MBeanServer operation.");
348 // any information to the bad guys, other than that the access control
360 private static boolean checkCreateAccess(Access access, String className) {
361 for (String classNamePattern : access.createPatterns) {
395 Access access = Parser.parseAccess(identity, accessString);
396 accessMap.put(identity, access);
435 Access access;
437 access = new Access(false, false, null);
439 access = parseReadWrite();
446 return access;