netx.jnlp
Class SecurityDesc
java.lang.Object
|
+--netx.jnlp.SecurityDesc
- public class SecurityDesc
- extends java.lang.Object
The security element.
- Version:
- $Revision: 1.6 $
- Author:
- Jon A. Maxwell (JAM) - initial author
Constructor Summary |
SecurityDesc(JNLPFile file,
java.lang.Object type,
java.lang.String downloadHost)
Create a security descriptor. |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL_PERMISSIONS
public static final java.lang.Object ALL_PERMISSIONS
- All permissions.
SANDBOX_PERMISSIONS
public static final java.lang.Object SANDBOX_PERMISSIONS
- Applet permissions.
J2EE_PERMISSIONS
public static final java.lang.Object J2EE_PERMISSIONS
- J2EE permissions.
SecurityDesc
public SecurityDesc(JNLPFile file,
java.lang.Object type,
java.lang.String downloadHost)
- Create a security descriptor.
- Parameters:
file
- the JNLP filetype
- the type of securitydownloadHost
- the download host (can always connect to)
getSecurityType
public java.lang.Object getSecurityType()
- Returns the permissions type, one of: ALL_PERMISSIONS,
SANDBOX_PERMISSIONS, J2EE_PERMISSIONS.
getPermissions
public java.security.PermissionCollection getPermissions()
- Returns a PermissionCollection containing the basic
permissions granted depending on the security type.