Class SecurityDesc
java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.security.SecurityDesc
The security element.
- Version:
- $Revision: 1.7 $
- Author:
- Jon A. Maxwell (JAM) - initial author
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSecurityDesc(JNLPFile file, AppletPermissionLevel appletPermissionLevel, Object type, URL downloadHost) Create a security descriptor.SecurityDesc(JNLPFile file, ApplicationPermissionLevel applicationPermissionLevel, Object type, URL downloadHost) Create a security descriptor. -
Method Summary
-
Field Details
-
SECURITY_ELEMENT
- See Also:
-
ALL_PERMISSIONS
All permissions. -
SANDBOX_PERMISSIONS
Applet permissions. -
J2EE_PERMISSIONS
J2EE permissions.
-
-
Constructor Details
-
SecurityDesc
public SecurityDesc(JNLPFile file, ApplicationPermissionLevel applicationPermissionLevel, Object type, URL downloadHost) Create a security descriptor.- Parameters:
file- the JNLP fileapplicationPermissionLevel- the permissions specified in the JNLPtype- the type of securitydownloadHost- the download host (can always connect to)
-
SecurityDesc
public SecurityDesc(JNLPFile file, AppletPermissionLevel appletPermissionLevel, Object type, URL downloadHost) Create a security descriptor.- Parameters:
file- the JNLP fileappletPermissionLevel- the permissions specified in the JNLPtype- the type of securitydownloadHost- the download host (can always connect to)
-
-
Method Details
-
getSecurityType
- Returns:
- the permissions type, one of: ALL, 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.
-
getApplicationPermissionLevel
-
getAppletPermissionLevel
-
getSandBoxPermissions
- Returns:
- a PermissionCollection containing the sandbox permissions
-
getJnlpRIAPermissions
- Returns:
- all the names of the basic JNLP system properties accessible by RIAs
-