Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b93dcacac360807d013eb30ddf6f79e465988e05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*******************************************************************************
 * Copyright (c) 2004 Composent, Inc. 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
 * 
 * Contributors: Composent, Inc. - initial API and implementation
 ******************************************************************************/
package org.eclipse.ecf.core.identity;

import java.security.BasicPermission;
import java.security.Permission;

public class NamespacePermission extends BasicPermission {
	private static final long serialVersionUID = 3257004371500806969L;

	public static final String ADD_NAMESPACE = "add"; //$NON-NLS-1$

	public static final String ALL_NAMESPACE = "all"; //$NON-NLS-1$

	public static final String CONTAINS_NAMESPACE = "contains"; //$NON-NLS-1$

	public static final String GET_NAMESPACE = "get"; //$NON-NLS-1$

	public static final String REMOVE_NAMESPACE = "remove"; //$NON-NLS-1$

	protected String actions;

	/**
	 * @since 3.9
	 */
	public NamespacePermission() {
		super("", "");
	}

	public NamespacePermission(String s) {
		super(s);
	}

	public NamespacePermission(String s, String s1) {
		super(s, s1);
		actions = s1;
	}

	public String getActions() {
		return actions;
	}

	public boolean implies(Permission p) {
		return false;
	}
}

Back to the top