public static enum SecurityDesc.RequestedPermissionLevel extends java.lang.Enum<SecurityDesc.RequestedPermissionLevel>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERMISSIONS_NAME |
Modifier and Type | Method and Description |
---|---|
SecurityDesc.RequestedPermissionLevel |
fromHtmlString(java.lang.String htmlString)
The HTML permission level corresponding to the given String.
|
SecurityDesc.RequestedPermissionLevel |
fromJnlpString(java.lang.String jnlpString)
The JNLP permission level corresponding to the given String.
|
java.lang.String |
toHtmlString()
This permission level, as it would appear requested in an HTML file.
|
java.lang.String |
toJnlpString()
This permission level, as it would appear requested in a JNLP file.
|
static SecurityDesc.RequestedPermissionLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SecurityDesc.RequestedPermissionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityDesc.RequestedPermissionLevel NONE
public static final SecurityDesc.RequestedPermissionLevel DEFAULT
public static final SecurityDesc.RequestedPermissionLevel SANDBOX
public static final SecurityDesc.RequestedPermissionLevel J2EE
public static final SecurityDesc.RequestedPermissionLevel ALL
public static final java.lang.String PERMISSIONS_NAME
public static SecurityDesc.RequestedPermissionLevel[] values()
for (SecurityDesc.RequestedPermissionLevel c : SecurityDesc.RequestedPermissionLevel.values()) System.out.println(c);
public static SecurityDesc.RequestedPermissionLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toJnlpString()
public java.lang.String toHtmlString()
public SecurityDesc.RequestedPermissionLevel fromJnlpString(java.lang.String jnlpString)
jnlpString
- the JNLP permission Stringpublic SecurityDesc.RequestedPermissionLevel fromHtmlString(java.lang.String htmlString)
htmlString
- the JNLP permission String