Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.log/src/org/eclipse/equinox/log/LogPermission.java')
-rw-r--r--bundles/org.eclipse.equinox.log/src/org/eclipse/equinox/log/LogPermission.java64
1 files changed, 0 insertions, 64 deletions
diff --git a/bundles/org.eclipse.equinox.log/src/org/eclipse/equinox/log/LogPermission.java b/bundles/org.eclipse.equinox.log/src/org/eclipse/equinox/log/LogPermission.java
deleted file mode 100644
index 02791b1c6..000000000
--- a/bundles/org.eclipse.equinox.log/src/org/eclipse/equinox/log/LogPermission.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 IBM Corporation and others
- * All rights reserved. This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- ******************************************************************************/
-package org.eclipse.equinox.log;
-
-import java.security.Permission;
-import java.security.PermissionCollection;
-
-/**
- * Indicates a bundle's authority to log on behalf of other bundles.
- *
- * This permission has only a single action: LOG.
- *
- * @ThreadSafe
- */
-public class LogPermission extends Permission {
- private static final long serialVersionUID = -441193976837153362L;
- private static final String ALL = "*"; //$NON-NLS-1$
-
- /**
- * The action string <code>log</code>.
- */
- public static final String LOG = "log"; //$NON-NLS-1$
-
- /**
- * Create a new LogPermission.
- *
- * @param name Name must be &quot;*&quot;.
- * @param actions <code>log</code> or &quot;*&quot;.
- */
- public LogPermission(String name, String actions) {
- super(name);
- if (!name.equals(ALL))
- throw new IllegalArgumentException("name must be *"); //$NON-NLS-1$
-
- actions = actions.trim();
- if (!actions.equalsIgnoreCase(LOG) && !actions.equals(ALL))
- throw new IllegalArgumentException("actions must be * or log"); //$NON-NLS-1$
- }
-
- public boolean equals(Object obj) {
- return obj instanceof LogPermission;
- }
-
- public String getActions() {
- return LOG;
- }
-
- public int hashCode() {
- return LogPermission.class.hashCode();
- }
-
- public boolean implies(Permission permission) {
- return permission instanceof LogPermission;
- }
-
- public PermissionCollection newPermissionCollection() {
- return new LogPermissionCollection();
- }
-}

Back to the top