FileDocCategorySizeDatePackage
MyPolicy.javaAPI DocExample1641Sat Jan 13 12:16:20 GMT 2001javasec.samples.ch05

MyPolicy

public class MyPolicy extends Policy

Fields Summary
Constructors Summary
Methods Summary
public java.security.PermissionCollectiongetPermissions(java.security.CodeSource cs)

        if (cs.getLocation().getProtocol().equals("file"))
            return new SimplePermissions(true);
        return new SimplePermissions(false);
    
public voidrefresh()