예제 #1
0
 /**
  * Gets the permissions for a given code source.
  *
  * @see java.security.Policy#getPermissions(java.security.CodeSource)
  */
 public PermissionCollection getPermissions(CodeSource codesource) {
   PermissionCollection coll = policyFile.getPermissions(codesource);
   addPermissions(codesource, coll);
   return coll;
 }
예제 #2
0
 /** @see java.security.Policy#refresh() */
 public synchronized void refresh() {
   policyFile.refresh();
   loadExtensions();
 }