remove final keywords and serialVersionUID constants
This commit is contained in:
parent
a20a4c9c23
commit
8e321ce277
@ -7,9 +7,7 @@ import org.springframework.security.core.GrantedAuthority;
|
|||||||
|
|
||||||
public class CustomAuthenticationToken extends UsernamePasswordAuthenticationToken {
|
public class CustomAuthenticationToken extends UsernamePasswordAuthenticationToken {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private String domain;
|
||||||
|
|
||||||
private final String domain;
|
|
||||||
|
|
||||||
public CustomAuthenticationToken(Object principal, Object credentials, String domain) {
|
public CustomAuthenticationToken(Object principal, Object credentials, String domain) {
|
||||||
super(principal, credentials);
|
super(principal, credentials);
|
||||||
|
@ -19,8 +19,8 @@ public class CustomUserDetailsAuthenticationProvider extends AbstractUserDetails
|
|||||||
*/
|
*/
|
||||||
private static final String USER_NOT_FOUND_PASSWORD = "userNotFoundPassword";
|
private static final String USER_NOT_FOUND_PASSWORD = "userNotFoundPassword";
|
||||||
|
|
||||||
private final PasswordEncoder passwordEncoder;
|
private PasswordEncoder passwordEncoder;
|
||||||
private final CustomUserDetailsService userDetailsService;
|
private CustomUserDetailsService userDetailsService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The password used to perform
|
* The password used to perform
|
||||||
|
@ -8,7 +8,7 @@ import org.springframework.stereotype.Service;
|
|||||||
@Service("userDetailsService")
|
@Service("userDetailsService")
|
||||||
public class CustomUserDetailsServiceImpl implements CustomUserDetailsService {
|
public class CustomUserDetailsServiceImpl implements CustomUserDetailsService {
|
||||||
|
|
||||||
private final UserRepository userRepository;
|
private UserRepository userRepository;
|
||||||
|
|
||||||
public CustomUserDetailsServiceImpl(UserRepository userRepository) {
|
public CustomUserDetailsServiceImpl(UserRepository userRepository) {
|
||||||
this.userRepository = userRepository;
|
this.userRepository = userRepository;
|
||||||
|
@ -8,7 +8,7 @@ public class User extends org.springframework.security.core.userdetails.User {
|
|||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final String domain;
|
private String domain;
|
||||||
|
|
||||||
public User(String username, String domain, String password, boolean enabled,
|
public User(String username, String domain, String password, boolean enabled,
|
||||||
boolean accountNonExpired, boolean credentialsNonExpired,
|
boolean accountNonExpired, boolean credentialsNonExpired,
|
||||||
|
@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
|
|||||||
@Service("userDetailsService")
|
@Service("userDetailsService")
|
||||||
public class SimpleUserDetailsService implements UserDetailsService {
|
public class SimpleUserDetailsService implements UserDetailsService {
|
||||||
|
|
||||||
private final UserRepository userRepository;
|
private UserRepository userRepository;
|
||||||
|
|
||||||
public SimpleUserDetailsService(UserRepository userRepository) {
|
public SimpleUserDetailsService(UserRepository userRepository) {
|
||||||
this.userRepository = userRepository;
|
this.userRepository = userRepository;
|
||||||
|
@ -6,9 +6,7 @@ import org.springframework.security.core.GrantedAuthority;
|
|||||||
|
|
||||||
public class User extends org.springframework.security.core.userdetails.User {
|
public class User extends org.springframework.security.core.userdetails.User {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private String domain;
|
||||||
|
|
||||||
private final String domain;
|
|
||||||
|
|
||||||
public User(String username, String domain, String password, boolean enabled,
|
public User(String username, String domain, String password, boolean enabled,
|
||||||
boolean accountNonExpired, boolean credentialsNonExpired,
|
boolean accountNonExpired, boolean credentialsNonExpired,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user