1 17 18 package org.sape.carbon.services.security.management; 19 20 import java.security.Principal ; 21 import java.security.acl.Group ; 22 import java.util.Map ; 23 import java.util.Set ; 24 25 import org.sape.carbon.core.component.FunctionalInterface; 26 27 49 public interface UserManager extends FunctionalInterface { 50 78 Principal createUser(String userName, Map userInfo) 79 throws DuplicatePrincipalException, SecurityManagementDataStoreException; 80 81 107 boolean authenticate(String userName, Object credential) 108 throws SecurityManagementDataStoreException; 109 110 120 void removeUser(Principal user) 121 throws UnknownPrincipalException, SecurityManagementDataStoreException; 122 123 134 void updateCredential(Principal user, Object credential) 135 throws UnknownPrincipalException, SecurityManagementDataStoreException; 136 137 147 Group createGroup(String groupName) 148 throws DuplicateGroupException, SecurityManagementDataStoreException; 149 150 158 void removeGroup(Group group) 159 throws UnknownGroupException, SecurityManagementDataStoreException; 160 161 171 Principal retreiveUser(String userName) 172 throws SecurityManagementDataStoreException; 173 174 183 Group retreiveGroup(String groupName) 184 throws SecurityManagementDataStoreException; 185 186 201 Set retreiveGroups(Principal principal) 202 throws UnknownPrincipalException, SecurityManagementDataStoreException; 203 204 228 boolean addPrincipalToGroup(Principal principal, Group group) 229 throws 230 UnknownPrincipalException, 231 UnknownGroupException, 232 SecurityManagementDataStoreException; 233 234 259 boolean removePrincipalFromGroup(Principal principal, Group group) 260 throws 261 UnknownPrincipalException, 262 UnknownGroupException, 263 SecurityManagementDataStoreException; 264 265 272 Set retreiveAllUserNames() throws SecurityManagementDataStoreException; 273 274 281 Set retreiveAllGroupNames() throws SecurityManagementDataStoreException; 282 } 283 | Popular Tags |