/[classpath]/classpath/gnu/java/security/provider/DefaultPolicy.java
ViewVC logotype

Diff of /classpath/gnu/java/security/provider/DefaultPolicy.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mark, Tue Jan 22 22:26:58 2002 UTC revision 1.3 by cbj, Thu Mar 21 05:40:11 2002 UTC
# Line 47  import java.security.*; Line 47  import java.security.*;
47    */    */
48  public class DefaultPolicy extends Policy  public class DefaultPolicy extends Policy
49  {  {
50      /*
51    static Permissions allPermissions = new Permissions();    static Permissions allPermissions = new Permissions();
52        
53    static    static
54    {    {
55      allPermissions.add(new AllPermission());      allPermissions.add(new AllPermission());
56    }    }
57      */
58      static Permission allPermission = new AllPermission();
59    
60    public PermissionCollection getPermissions(CodeSource codesource)    public PermissionCollection getPermissions(CodeSource codesource)
61    {    {
62      return allPermissions;      Permissions perms = new Permissions();
63        perms.add(allPermission);
64        return perms;
65    }    }
66        
67    public void refresh()    public void refresh()

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26