1 package org.exoplatform.services.security; 2 3 import org.apache.commons.logging.Log; 4 import org.exoplatform.services.exception.ExoServiceException; 5 6 import javax.security.auth.Subject ; 7 8 12 public interface SecurityService { 13 14 public boolean authenticate(String login, String password) throws Exception ; 15 16 public Subject getSubject(String userName); 17 public void setUpAndCacheSubject(String userName, Subject value) throws ExoServiceException; 18 public void removeSubject(String userName); 19 20 public void addSubjectEvenetListener(SubjectEventListener subjectEventListener); 21 22 public boolean isUserInRole(String userName, String role); 23 24 public Log getLog() ; 25 } 26 | Popular Tags |