1 17 package org.alfresco.service.cmr.security; 18 19 import org.alfresco.repo.security.authentication.AuthenticationException; 20 21 28 public interface AuthenticationService 29 { 30 37 public void createAuthentication(String userName, char[] password) throws AuthenticationException; 38 39 47 public void updateAuthentication(String userName, char[] oldPassword, char[] newPassword) throws AuthenticationException; 48 49 56 public void setAuthentication(String userName, char[] newPassword) throws AuthenticationException; 57 58 59 65 public void deleteAuthentication(String userName) throws AuthenticationException; 66 67 73 public void setAuthenticationEnabled(String userName, boolean enabled) throws AuthenticationException; 74 75 81 public boolean getAuthenticationEnabled(String userName) throws AuthenticationException; 82 83 91 public void authenticate(String userName, char[] password) throws AuthenticationException; 92 93 98 public void authenticateAsGuest() throws AuthenticationException; 99 100 106 public String getCurrentUserName() throws AuthenticationException; 107 108 114 public void invalidateUserSession(String userName) throws AuthenticationException; 115 116 122 public void invalidateTicket(String ticket) throws AuthenticationException; 123 124 130 public void validate(String ticket) throws AuthenticationException; 131 132 136 public String getCurrentTicket(); 137 138 142 public void clearCurrentSecurityContext(); 143 144 149 150 public boolean isCurrentUserTheSystemUser(); 151 152 } 153 154 | Popular Tags |