Class OpencastUserDetailsContextMapper

java.lang.Object
org.opencastproject.userdirectory.ldap.OpencastUserDetailsContextMapper
All Implemented Interfaces:
org.springframework.security.ldap.userdetails.UserDetailsContextMapper

public class OpencastUserDetailsContextMapper extends Object implements org.springframework.security.ldap.userdetails.UserDetailsContextMapper
  • Constructor Details

    • OpencastUserDetailsContextMapper

      public OpencastUserDetailsContextMapper(String[] name, String mail)
  • Method Details

    • mapUserFromContext

      public org.springframework.security.core.userdetails.UserDetails mapUserFromContext(org.springframework.ldap.core.DirContextOperations ctx, String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
      Specified by:
      mapUserFromContext in interface org.springframework.security.ldap.userdetails.UserDetailsContextMapper
    • mapUserToContext

      public void mapUserToContext(org.springframework.security.core.userdetails.UserDetails user, org.springframework.ldap.core.DirContextAdapter ctx)
      Specified by:
      mapUserToContext in interface org.springframework.security.ldap.userdetails.UserDetailsContextMapper
    • getAttributes

      public String[] getAttributes()