1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.common.util.security; |
17 | |
|
18 | |
import org.springframework.security.GrantedAuthority; |
19 | |
import org.springframework.security.userdetails.User; |
20 | |
|
21 | |
public class UserWithId extends User { |
22 | |
private static final long serialVersionUID = 1L; |
23 | |
private String userId; |
24 | |
|
25 | |
public UserWithId(String username, String password, boolean enabled, boolean accountNonExpired, |
26 | |
boolean credentialsNonExpired, boolean accountNonLocked, GrantedAuthority[] authorities) |
27 | |
throws IllegalArgumentException { |
28 | 0 | super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities); |
29 | 0 | } |
30 | |
|
31 | |
public String getUserId() { |
32 | 0 | return userId; |
33 | |
} |
34 | |
|
35 | |
public void setUserId(String userId) { |
36 | 0 | this.userId = userId; |
37 | 0 | } |
38 | |
} |