public class SecurityDesc
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SecurityDesc.RequestedPermissionLevelRepresents the security level requested by an applet/application, as specified in its JNLP or HTML. | 
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.Object | ALL_PERMISSIONSAll permissions. | 
| static java.lang.Object | J2EE_PERMISSIONSJ2EE permissions. | 
| static java.lang.Object | SANDBOX_PERMISSIONSApplet permissions. | 
| Constructor and Description | 
|---|
| SecurityDesc(JNLPFile file,
            java.lang.Object type,
            java.net.URL downloadHost)Create a security descriptor. | 
| SecurityDesc(JNLPFile file,
            SecurityDesc.RequestedPermissionLevel requestedPermissionLevel,
            java.lang.Object type,
            java.net.URL downloadHost)Create a security descriptor. | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.String[] | getJnlpRIAPermissions() | 
| java.security.PermissionCollection | getPermissions(java.security.CodeSource cs) | 
| SecurityDesc.RequestedPermissionLevel | getRequestedPermissionLevel() | 
| java.security.PermissionCollection | getSandBoxPermissions() | 
| java.lang.Object | getSecurityType() | 
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, SecurityDesc.RequestedPermissionLevel requestedPermissionLevel, java.lang.Object type, java.net.URL downloadHost)
file - the JNLP filerequestedPermissionLevel - the permission level specified in the JNLPtype - the type of securitydownloadHost - the download host (can always connect to)public SecurityDesc(JNLPFile file, java.lang.Object type, java.net.URL 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(java.security.CodeSource cs)
cs - the CodeSource to get permissions forpublic SecurityDesc.RequestedPermissionLevel getRequestedPermissionLevel()
public java.security.PermissionCollection getSandBoxPermissions()
public static java.lang.String[] getJnlpRIAPermissions()