Lines Matching refs:name

39     The <em>name</em> of the permission specifies the operation requested
50 <dd>Find an MBeanServer with a given name, or all MBeanServers in this
60 The <em>name</em> of the permission can also denote a list of one or more
62 end of the <em>name</em> and before and after commas.
112 /** <p>Create a new MBeanServerPermission with the given name.</p>
114 <code>MBeanServerPermission(name,null)</code>.</p>
115 @param name the name of the granted permission. It must
118 @exception NullPointerException if the name is null.
119 @exception IllegalArgumentException if the name is not
123 public MBeanServerPermission(String name) {
124 this(name, null);
127 /** <p>Create a new MBeanServerPermission with the given name.</p>
128 @param name the name of the granted permission. It must
133 @exception NullPointerException if the name is null.
134 @exception IllegalArgumentException if the name is not
139 * @throws NullPointerException if <code>name</code> is <code>null</code>.
140 * @throws IllegalArgumentException if <code>name</code> is empty or
143 public MBeanServerPermission(String name, String actions) {
144 super(getCanonicalName(parseMask(name)), actions);
146 /* It's annoying to have to parse the name twice, but since
151 mask = parseMask(name);
214 private static int parseMask(String name) {
215 /* Check that target name is a non-null non-empty string */
216 if (name == null) {
218 "target name can't be null");
221 name = name.trim();
222 if (name.equals("*"))
225 /* If the name is empty, nameIndex will barf. */
226 if (name.indexOf(',') < 0)
227 return impliedMask(1 << nameIndex(name.trim()));
231 StringTokenizer tok = new StringTokenizer(name, ",");
241 private static int nameIndex(String name)
244 if (names[i].equals(name))
248 "Invalid MBeanServerPermission name: \"" + name + "\"";