Class JdbcUserDetailsManager

java.lang.Object
com.codename1.backend.security.core.userdetails.JdbcUserDetailsManager
All Implemented Interfaces:
UserDetailsManager, UserDetailsPasswordService, UserDetailsService

public class JdbcUserDetailsManager extends Object implements UserDetailsManager, UserDetailsPasswordService

Users kept in the server's database, in the cn1_users and cn1_authorities tables of SecuritySchema.

@Bean
UserDetailsService users(DataSource dataSource) {
    return new JdbcUserDetailsManager(dataSource);
}

A user is found whatever the case of the name it is asked for by, and keeps the spelling it was created with; two names that differ only in the case of A to Z are one user. A password is stored as it is given: encode it first, as for any user store.

Every change to a user and its authorities is one transaction, and joins the caller's when there is one.