Is there a way to tell Spring to find the user's role in a custom user bean that I've made?

http://static.springsource.org/sprin...ns-config.html

So if I had a bean called UserDetails that had:
  • userId
  • username
  • roles


Using the authentication manager, could it point to the UserDetails bean to determine the user's role? If so, where would I define the UserDetails bean in the code below?

Also what is "myUserDetailsService"? Is that a reference to the bean below the auth-manager?

Code:
  <authentication-manager>
    <authentication-provider user-service-ref='myUserDetailsService'/>
  </authentication-manager>

  <beans:bean id="myUserDetailsService"
      class="org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl">
    <beans:property name="dataSource" ref="dataSource"/>
  </beans:bean>