1 23 24 package com.sun.enterprise.deployment.interfaces; 25 26 import java.util.Iterator ; 27 import java.util.Enumeration ; 28 import java.security.Principal ; 29 import java.util.Map ; 30 import com.sun.enterprise.deployment.Role; 31 32 40 public interface SecurityRoleMapper { 41 42 46 public void setName(String name); 47 48 51 public String getName(); 52 53 56 public Iterator getRoles(); 57 58 62 public Enumeration getUsersAssignedTo(Role r); 63 64 65 69 public Enumeration getGroupsAssignedTo(Role r); 70 71 76 public void assignRole(Principal p, Role r); 77 78 83 public void unassignPrincipalFromRole(Role role, Principal principal); 84 85 89 public void unassignRole(Role role); 90 93 public Map getRoleToSubjectMapping(); 94 } 95 | Popular Tags |