@Service(value="userDetailsService") public class UserProfileServiceImpl extends Object implements UserProfileService, org.springframework.security.core.userdetails.UserDetailsService, org.springframework.security.ldap.userdetails.UserDetailsContextMapper
DOT_CLASS, OPERATION_GET_PRINCIPAL, OPERATION_UPDATE_USER
Constructor and Description |
---|
UserProfileServiceImpl() |
Modifier and Type | Method and Description |
---|---|
MidPointPrincipal |
getPrincipal(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user) |
MidPointPrincipal |
getPrincipal(String username) |
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username) |
org.springframework.security.core.userdetails.UserDetails |
mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx,
String username,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) |
void |
mapUserToContext(org.springframework.security.core.userdetails.UserDetails user,
org.springframework.ldap.core.DirContextAdapter ctx) |
<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType,O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
resolveOwner(PrismObject<O> object) |
void |
updateUser(MidPointPrincipal principal) |
public MidPointPrincipal getPrincipal(String username) throws ObjectNotFoundException
getPrincipal
in interface UserProfileService
ObjectNotFoundException
public MidPointPrincipal getPrincipal(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> user)
getPrincipal
in interface UserProfileService
public void updateUser(MidPointPrincipal principal)
updateUser
in interface UserProfileService
public <F extends com.evolveum.midpoint.xml.ns._public.common.common_3.FocusType,O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> PrismObject<F> resolveOwner(PrismObject<O> object)
resolveOwner
in interface OwnerResolver
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
org.springframework.security.core.userdetails.UsernameNotFoundException
public org.springframework.security.core.userdetails.UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
mapUserFromContext
in interface org.springframework.security.ldap.userdetails.UserDetailsContextMapper
public void mapUserToContext(org.springframework.security.core.userdetails.UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx)
mapUserToContext
in interface org.springframework.security.ldap.userdetails.UserDetailsContextMapper
Copyright © 2016 evolveum. All rights reserved.