egovframework.rfc3.iam.security.userdetails.jdbc
Class EgovJdbcUserDetailsManager
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl
org.springframework.security.provisioning.JdbcUserDetailsManager
egovframework.rfc3.iam.security.userdetails.jdbc.EgovJdbcUserDetailsManager
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.security.core.userdetails.UserDetailsService, org.springframework.security.provisioning.GroupManager, org.springframework.security.provisioning.UserDetailsManager
public class EgovJdbcUserDetailsManager
- extends org.springframework.security.provisioning.JdbcUserDetailsManager
JdbcUserDetailsManager 클래스 재정의
- Since:
- 2010.12.06
- Version:
- egovframework RFC 3.0
- Author:
- 허성철
- See Also:
<< 개정이력(Modification Information) >>
수정일 수정자 수정내용
------- ------------- ----------------------
2010.12.06 허성철 egovframe 수정작업
Copyright (C) 2010 by skoinfo All right reserved.
Fields inherited from class org.springframework.security.provisioning.JdbcUserDetailsManager |
DEF_CHANGE_PASSWORD_SQL, DEF_CREATE_USER_SQL, DEF_DELETE_GROUP_AUTHORITIES_SQL, DEF_DELETE_GROUP_AUTHORITY_SQL, DEF_DELETE_GROUP_MEMBER_SQL, DEF_DELETE_GROUP_MEMBERS_SQL, DEF_DELETE_GROUP_SQL, DEF_DELETE_USER_AUTHORITIES_SQL, DEF_DELETE_USER_SQL, DEF_FIND_GROUP_ID_SQL, DEF_FIND_GROUPS_SQL, DEF_FIND_USERS_IN_GROUP_SQL, DEF_GROUP_AUTHORITIES_QUERY_SQL, DEF_INSERT_AUTHORITY_SQL, DEF_INSERT_GROUP_AUTHORITY_SQL, DEF_INSERT_GROUP_MEMBER_SQL, DEF_INSERT_GROUP_SQL, DEF_RENAME_GROUP_SQL, DEF_UPDATE_USER_SQL, DEF_USER_EXISTS_SQL |
Fields inherited from class org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl |
DEF_AUTHORITIES_BY_USERNAME_QUERY, DEF_GROUP_AUTHORITIES_BY_USERNAME_QUERY, DEF_USERS_BY_USERNAME_QUERY |
Methods inherited from class org.springframework.security.provisioning.JdbcUserDetailsManager |
addGroupAuthority, addUserToGroup, changePassword, createGroup, createUser, deleteGroup, deleteUser, findAllGroups, findGroupAuthorities, findUsersInGroup, removeGroupAuthority, removeUserFromGroup, renameGroup, setAuthenticationManager, setChangePasswordSql, setCreateAuthoritySql, setCreateUserSql, setDeleteUserAuthoritiesSql, setDeleteUserSql, setFindAllGroupsSql, setUpdateUserSql, setUserCache, setUserExistsSql, updateUser, userExists |
Methods inherited from class org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl |
getUsersByUsernameQuery, setAuthoritiesByUsernameQuery, setEnableAuthorities, setEnableGroups, setGroupAuthoritiesByUsernameQuery, setRolePrefix, setUsernameBasedPrimaryKey, setUsersByUsernameQuery |
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
getDataSource, getJdbcTemplate, setDataSource, setJdbcTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EgovJdbcUserDetailsManager
public EgovJdbcUserDetailsManager()
getMapClass
public java.lang.String getMapClass()
setMapClass
public void setMapClass(java.lang.String mapClass)
setUserGroupPropertyName
public void setUserGroupPropertyName(java.lang.String userGroupPropertyName)
getUserGroupPropertyName
public java.lang.String getUserGroupPropertyName()
setRoleHierarchy
public void setRoleHierarchy(org.springframework.security.access.hierarchicalroles.RoleHierarchy roleHierarchy)
- Role Hierarchy를 지원한다.
(org.springframework.security.userdetails.hierarchicalroles.RoleHierarchyImpl)
- Parameters:
roleHierarchy
- RoleHierarchy
loadUserByUsername
public EgovUserDetails loadUserByUsername(java.lang.String username)
throws org.springframework.security.core.userdetails.UsernameNotFoundException,
org.springframework.dao.DataAccessException
- JdbcDaoImpl 클래스의 loadUsersByUsername 메소드 재정의
사용자명(또는 ID)로 EgovUserDetails의 정보를 조회한다.
- Specified by:
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
- Overrides:
loadUserByUsername
in class org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl
- Parameters:
username
- String
- Returns:
- EgovUserDetails
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
getAuthenticatedUser
public EgovUserDetails getAuthenticatedUser()
throws org.springframework.security.core.userdetails.UsernameNotFoundException,
org.springframework.dao.DataAccessException
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException