1 17 package org.alfresco.repo.security.authentication; 18 19 import java.util.Set ; 20 21 import org.alfresco.service.cmr.repository.NodeRef; 22 import org.alfresco.service.cmr.repository.StoreRef; 23 24 31 public interface AuthenticationService 32 { 33 40 public void createAuthentication(String userName, char[] password) throws AuthenticationException; 41 42 50 public void updateAuthentication(String userName, char[] oldPassword, char[] newPassword) throws AuthenticationException; 51 52 59 public void setAuthentication(String userName, char[] newPassword) throws AuthenticationException; 60 61 62 68 public void deleteAuthentication(String userName) throws AuthenticationException; 69 70 78 public void authenticate(String userName, char[] password) throws AuthenticationException; 79 80 86 public String getCurrentUserName() throws AuthenticationException; 87 88 94 public void invalidateUserSession(String userName) throws AuthenticationException; 95 96 102 public void invalidateTicket(String ticket) throws AuthenticationException; 103 104 110 public void validate(String ticket) throws AuthenticationException; 111 112 116 public String getCurrentTicket(); 117 118 122 public void clearCurrentSecurityContext(); 123 124 125 130 public Set <String > getCurrentUserRoles(); 131 132 137 public Set <String > getCurrentUserGroups(); 138 139 145 public Set <String > getUserRoles(String userName); 146 147 153 public Set <String > getUserGroups(String userName); 154 155 160 public Set <String > getAllUserRoles(); 161 162 167 public Set <String > getAllUserGroups(); 168 169 174 public Set <String > getAllUserNames(); 175 176 184 public NodeRef synchronisePerson(StoreRef storeRef, String userName); 185 186 193 public NodeRef getPersonNodeRef(StoreRef storeRef, String userName); 194 195 200 201 public boolean isCurrentUserTheSystemUser(); 202 203 } 204 205 | Popular Tags |