1 7 8 package java.security.acl; 9 10 import java.util.Enumeration ; 11 import java.security.Principal ; 12 13 73 74 public interface Acl extends Owner { 75 76 89 public void setName(Principal caller, String name) 90 throws NotOwnerException ; 91 92 99 public String getName(); 100 101 122 public boolean addEntry(Principal caller, AclEntry entry) 123 throws NotOwnerException ; 124 125 138 public boolean removeEntry(Principal caller, AclEntry entry) 139 throws NotOwnerException ; 140 141 186 public Enumeration <Permission > getPermissions(Principal user); 187 188 194 public Enumeration <AclEntry > entries(); 195 196 215 public boolean checkPermission(Principal principal, Permission permission); 216 217 223 public String toString(); 224 } 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | Popular Tags |