content: package egovframework.com.cmm.service.impl;
  
  import java.util.ArrayList;
  import java.util.List;
  
  import egovframework.com.cmm.LoginVO;
  import egovframework.com.cmm.service.EgovUserDetailsService;
  
  import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
  
  /**
   *
   * @author ahnshy
   * @since 2011. 8. 12.
   * @version 1.0
   * @see
   *
   */
  
  public class EgoDummyUserDetailsServiceImpl extends EgovAbstractServiceImpl implements
  		EgovUserDetailsService {
  	
  	//로그인 객체
  	LoginVO loginVO = new LoginVO();
  	//권한목록 객체
  	List<String> listAuth = new ArrayList<String>();
  
  	@Override
  	public Object getAuthenticatedUser() {
  		loginVO.setId("TEST1");
  		loginVO.setPassword("raHLBnHFcunwNzcDcfad4PhD11hHgXSUr7fc1Jk9uoQ=");
  		loginVO.setUserSe("USR");
  		loginVO.setEmail("egovframe@nia.or.kr");
  		loginVO.setIhidNum("");
  		loginVO.setName("더미사용자");
  		loginVO.setOrgnztId("ORGNZT_0000000000000");
  		loginVO.setUniqId("USRCNFRM_00000000000");
  		return loginVO;
  	}
  
  	@Override
  	public List<String> getAuthorities() {
  		// 권한 설정을 리턴한다.
  		listAuth.add("IS_AUTHENTICATED_ANONYMOUSLY");
  		listAuth.add("IS_AUTHENTICATED_FULLY");
  		listAuth.add("IS_AUTHENTICATED_REMEMBERED");
  		listAuth.add("ROLE_ADMIN");
  		listAuth.add("ROLE_ANONYMOUS");
  		listAuth.add("ROLE_RESTRICTED");
  		listAuth.add("ROLE_USER");
  		return listAuth;
  	}
  
  	@Override
  	public Boolean isAuthenticated() {
  		// 인증된 유저인지 확인한다.
  		return true;
  	}
  
  }
  