Class JNLPPolicy
java.lang.Object
java.security.Policy
net.sourceforge.jnlp.runtime.JNLPPolicy
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.7 $
-
Nested Class Summary
Nested classes/interfaces inherited from class Policy
Policy.Parameters -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final URIprivate static final Loggerprivate static CodeSourceclasses from this source have all permissionsprivate Policythe system level policy for jnlpsprivate static Policythe previous policyprivate static CodeSourceclasses from this source have all permissionsprivate Policythe user-level policy for jnlpsFields inherited from class Policy
UNSUPPORTED_EMPTY_COLLECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate PermissionsReturn an all-permissions collection.getPermissions(CodeSource source) Return a mutable, heterogeneous-capable permission collection for the source.private PolicyConstructs a delegate policy based on a config settingprivate PolicygetPolicyFromUrl(String policyLocation) Loads a policy from a URIbooleanimplies(ProtectionDomain domain, Permission permission) private booleanisSystemJar(CodeSource source) Returns true if the CodeSource corresponds to a system jar.voidrefresh()Refresh.Methods inherited from class Policy
getInstance, getInstance, getInstance, getParameters, getPermissions, getPolicy, getProvider, getType, setPolicy
-
Field Details
-
LOG
-
shellSource
classes from this source have all permissions -
systemSource
classes from this source have all permissions -
systemPolicy
the previous policy -
jreExtDir
-
systemJnlpPolicy
the system level policy for jnlps -
userJnlpPolicy
the user-level policy for jnlps
-
-
Constructor Details
-
JNLPPolicy
protected JNLPPolicy()
-
-
Method Details
-
getPermissions
Return a mutable, heterogeneous-capable permission collection for the source.- Overrides:
getPermissionsin classPolicy
-
refresh
-
getAllPermissions
Return an all-permissions collection. -
isSystemJar
Returns true if the CodeSource corresponds to a system jar. That is, it's part of the JRE. -
getPolicyFromConfig
-
getPolicyFromUrl
-
implies
-