public class SecurityDesc
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
ALL_PERMISSIONS
All permissions.
|
static java.lang.Object |
J2EE_PERMISSIONS
J2EE permissions.
|
static java.lang.Object |
SANDBOX_PERMISSIONS
Applet permissions.
|
Constructor and Description |
---|
SecurityDesc(JNLPFile file,
java.lang.Object type,
java.lang.String downloadHost)
Create a security descriptor.
|
Modifier and Type | Method and Description |
---|---|
java.security.PermissionCollection |
getPermissions()
Returns a PermissionCollection containing the basic
permissions granted depending on the security type.
|
java.lang.Object |
getSecurityType()
Returns the permissions type, one of: ALL_PERMISSIONS,
SANDBOX_PERMISSIONS, J2EE_PERMISSIONS.
|
public static final java.lang.Object ALL_PERMISSIONS
public static final java.lang.Object SANDBOX_PERMISSIONS
public static final java.lang.Object J2EE_PERMISSIONS
public SecurityDesc(JNLPFile file, java.lang.Object type, java.lang.String downloadHost)
file
- the JNLP filetype
- the type of securitydownloadHost
- the download host (can always connect to)public java.lang.Object getSecurityType()
public java.security.PermissionCollection getPermissions()