com.hack23.cia.web.impl.ui.common
Class CustomUserDetailsService
java.lang.Object
com.hack23.cia.web.impl.ui.common.CustomUserDetailsService
- All Implemented Interfaces:
- org.springframework.security.core.userdetails.AuthenticationUserDetailsService<org.springframework.security.openid.OpenIDAuthenticationToken>, org.springframework.security.core.userdetails.UserDetailsService
public final class CustomUserDetailsService
- extends Object
- implements org.springframework.security.core.userdetails.UserDetailsService, org.springframework.security.core.userdetails.AuthenticationUserDetailsService<org.springframework.security.openid.OpenIDAuthenticationToken>
The Class CustomUserDetailsService.
Method Summary |
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String id)
|
org.springframework.security.core.userdetails.UserDetails |
loadUserDetails(org.springframework.security.openid.OpenIDAuthenticationToken token)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomUserDetailsService
public CustomUserDetailsService(String defaultAdminOpenId,
String email,
String fullName)
- Instantiates a new custom user details service.
- Parameters:
defaultAdminOpenId
- the default admin open idemail
- the emailfullName
- the full name
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String id)
- Specified by:
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
loadUserDetails
public org.springframework.security.core.userdetails.UserDetails loadUserDetails(org.springframework.security.openid.OpenIDAuthenticationToken token)
- Specified by:
loadUserDetails
in interface org.springframework.security.core.userdetails.AuthenticationUserDetailsService<org.springframework.security.openid.OpenIDAuthenticationToken>
Copyright © 2008-2012 www.hack23.com. All Rights Reserved.