-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMyUserDetails.groovy
More file actions
31 lines (25 loc) · 1.01 KB
/
Copy pathMyUserDetails.groovy
File metadata and controls
31 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.javazquez.ldapexample
/**
* Created by Juan Vazquez.
* URL: http://javazquez.com/juan
* Code is provide for educational purposes. Any use in a production system is at your own risk.
*/
import org.springframework.security.core.userdetails.User
class MyUserDetails extends User {
// extra instance variables final String fullname final String email final String title
String fullname
String email
String title
String phone
String photo
MyUserDetails(String username, String password, boolean enabled, boolean accountNonExpired,
boolean credentialsNonExpired, boolean accountNonLocked, Collection authorities,
String fullname, String email, String title, String photo, String phone) {
super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities)
this.fullname = fullname
this.email = email
this.title = title
this.photo = photo
this.phone = phone
}
}