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 java.util.List;
19
20 import org.springframework.security.core.GrantedAuthority;
21 import org.springframework.security.core.userdetails.User;
22
23 public class UserWithId extends User {
24 private static final long serialVersionUID = 1L;
25 private String userId;
26
27 public UserWithId(String username, String password, boolean enabled, boolean accountNonExpired,
28 boolean credentialsNonExpired, boolean accountNonLocked, List<GrantedAuthority> authorities)
29 throws IllegalArgumentException {
30 super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
31 }
32
33 public String getUserId() {
34 return userId;
35 }
36
37 public void setUserId(String userId) {
38 this.userId = userId;
39 }
40 }