// Convert value to a password, enabled setting, and list of granted
// authorities
configAttribEd.setAsText( value );
UserAttribute attr = (UserAttribute) configAttribEd.getValue();
// Make a user object, assuming the properties were properly
// provided
if ( attr != null ) {
UserDetails user =
new User( username, attr.getPassword(), attr.isEnabled(), true, true, true, attr.getAuthorities() );
userMap.addUser( user );
}
}
return userMap;