import java.security.*; import java.io.FilePermission; class Lubaja3 extends SecurityManager{ public void checkPermission(Permission p){ System.out.println(p); if(p instanceof FilePermission){ if(!p.getName().toLowerCase().startsWith("t")){ throw new SecurityException("Lugemiseks lubatud vaid t-ga algavad failinimed"); } } } }