1 17 package org.alfresco.repo.security.authentication; 18 19 import net.sf.acegisecurity.Authentication; 20 21 public interface AuthenticationComponent 22 { 23 24 31 public void authenticate(String userName, char[] password) throws AuthenticationException; 32 33 40 public Authentication authenticate(Authentication token) throws AuthenticationException; 41 42 45 46 public Authentication setCurrentUser(String userName); 47 48 52 public void clearCurrentSecurityContext(); 53 54 57 58 public Authentication setCurrentAuthentication(Authentication authentication); 59 60 65 public Authentication getCurrentAuthentication() throws AuthenticationException; 66 67 72 public Authentication setSystemUserAsCurrentUser(); 73 74 75 80 public Authentication setGuestUserAsCurrentUser(); 81 82 83 88 public String getSystemUserName(); 89 90 91 96 public String getGuestUserName(); 97 98 104 public String getCurrentUserName() throws AuthenticationException; 105 106 111 public NTLMMode getNTLMMode(); 112 113 119 public String getMD4HashedPassword(String userName); 120 } 121 | Popular Tags |