Package net.sourceforge.jnlp
Class SecurityDesc
java.lang.Object
net.sourceforge.jnlp.SecurityDesc
The security element.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Represents the security level requested by an applet/application, as specified in its JNLP or HTML. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSecurityDesc
(JNLPFile file, Object type, URL downloadHost) Create a security descriptor.SecurityDesc
(JNLPFile file, SecurityDesc.RequestedPermissionLevel requestedPermissionLevel, Object type, URL downloadHost) Create a security descriptor. -
Method Summary
-
Field Details
-
ALL_PERMISSIONS
All permissions. -
SANDBOX_PERMISSIONS
Applet permissions. -
J2EE_PERMISSIONS
J2EE permissions.
-
-
Constructor Details
-
SecurityDesc
public SecurityDesc(JNLPFile file, SecurityDesc.RequestedPermissionLevel requestedPermissionLevel, Object type, URL downloadHost) Create a security descriptor.- Parameters:
file
- the JNLP filerequestedPermissionLevel
- the permission level specified in the JNLPtype
- the type of securitydownloadHost
- the download host (can always connect to)
-
SecurityDesc
Create a security descriptor.- Parameters:
file
- the JNLP filetype
- the type of securitydownloadHost
- the download host (can always connect to)
-
-
Method Details
-
getSecurityType
- Returns:
- the permissions type, one of: ALL_PERMISSIONS, SANDBOX_PERMISSIONS, J2EE_PERMISSIONS.
-
getPermissions
- Parameters:
cs
- the CodeSource to get permissions for- Returns:
- a PermissionCollection containing the basic permissions granted depending on the security type.
-
getRequestedPermissionLevel
- Returns:
- the permission level requested in the JNLP
-
getSandBoxPermissions
- Returns:
- a PermissionCollection containing the sandbox permissions
-
getJnlpRIAPermissions
- Returns:
- all the names of the basic JNLP system properties accessible by RIAs
-