netx.jnlp.runtime
Class JNLPPolicy

java.lang.Object
  |
  +--java.security.Policy
        |
        +--netx.jnlp.runtime.JNLPPolicy

public class JNLPPolicy
extends java.security.Policy

Policy for JNLP environment. This class delegates to the system policy but always grants permissions to the JNLP code and system CodeSources (no separate policy file needed). This class may also grant permissions to applications at runtime if approved by the user.

Version:
$Revision: 1.6 $
Author:
Jon A. Maxwell (JAM) - initial author

Constructor Summary
protected JNLPPolicy()
           
 
Method Summary
 java.security.PermissionCollection getPermissions(java.security.CodeSource source)
          Return a mutable, heterogeneous-capable permission collection for the source.
 void refresh()
          Refresh.
 
Methods inherited from class java.security.Policy
getPolicy, setPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNLPPolicy

protected JNLPPolicy()
Method Detail

getPermissions

public java.security.PermissionCollection getPermissions(java.security.CodeSource source)
Return a mutable, heterogeneous-capable permission collection for the source.
Overrides:
getPermissions in class java.security.Policy

refresh

public void refresh()
Refresh.
Overrides:
refresh in class java.security.Policy