Offload int[] to byte[].
[SquirrelJME.git] / modules / meep-swm / src / main / java / javax / microedition / swm / SWMPermission.java
bloba2d85611abaac9bdf465ebe0836d72f09da1db08
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
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;
16 /**
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
22 * client.
24 * {@code "crossClient"} is usually assigned to the root client which allows
25 * a client to control other clients.
27 * @since 2016/06/24
29 @Api
30 public final class SWMPermission
31 extends BasicPermission
33 /**
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.
42 * @since 2016/06/24
44 @Api
45 public SWMPermission(String __scope, String __actions)
46 throws IllegalArgumentException, NullPointerException
48 super(__scope, __actions);
50 // Check
51 if (__scope == null || __actions == null)
52 throw new NullPointerException("NARG");
54 throw Debugging.todo();