1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package javax
.microedition
.swm
;
12 import cc
.squirreljme
.runtime
.cldc
.annotation
.Api
;
13 import cc
.squirreljme
.runtime
.cldc
.debug
.Debugging
;
14 import java
.security
.BasicPermission
;
17 * This is a permission which is used and checked in the security manager
18 * to verify that the specified permissions are available before the
19 * application and task manager are used.
21 * {@code "client"} refers to applications which are assigned to the same
24 * {@code "crossClient"} is usually assigned to the root client which allows
25 * a client to control other clients.
30 public final class SWMPermission
31 extends BasicPermission
34 * Initializes a new permission.
36 * @param __scope The scope.
37 * @param __actions The actions used. If an action is specified multiple
38 * times then it is ignored.
39 * @throws IllegalArgumentException If any action includes a string which
40 * is not permitted or if the scope is incorrect.
41 * @throws NullPointerException On null arguments.
45 public SWMPermission(String __scope
, String __actions
)
46 throws IllegalArgumentException
, NullPointerException
48 super(__scope
, __actions
);
51 if (__scope
== null || __actions
== null)
52 throw new NullPointerException("NARG");
54 throw Debugging
.todo();