-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserManagementRequest.java
72 lines (58 loc) · 2.16 KB
/
UserManagementRequest.java
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package eu.h2020.symbiote.security.communication.payloads;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import eu.h2020.symbiote.security.commons.enums.OperationType;
/**
* Describes user registration in AAM payload.
*
* @author Daniele Caldarola (CNIT)
* @author Nemanja Ignjatov (UNIVIE)
* @author Mikołaj Dobski (PSNC)
* @author Maksymilian Marcinowski (PSNC)
*/
public class UserManagementRequest {
private Credentials administratorCredentials = new Credentials();
private Credentials userCredentials = new Credentials();
private UserDetails userDetails;
private OperationType operationType;
/**
* used by JSON serializer
*/
public UserManagementRequest() { // used by JSON serializer
}
@JsonCreator
public UserManagementRequest(
@JsonProperty("administratorCredentials") Credentials administratorCredentials,
@JsonProperty("userCredentials") Credentials userCredentials,
@JsonProperty("userDetails") UserDetails userDetails,
@JsonProperty("operationType") OperationType operationType) {
this.administratorCredentials = administratorCredentials;
this.userCredentials = userCredentials;
this.userDetails = userDetails;
this.operationType = operationType;
}
public Credentials getAdministratorCredentials() {
return administratorCredentials;
}
public void setAdministratorCredentials(Credentials administratorCredentials) {
this.administratorCredentials = administratorCredentials;
}
public UserDetails getUserDetails() {
return userDetails;
}
public void setUserDetails(UserDetails userDetails) {
this.userDetails = userDetails;
}
public OperationType getOperationType() {
return operationType;
}
public void setOperationType(OperationType operationType) {
this.operationType = operationType;
}
public Credentials getUserCredentials() {
return userCredentials;
}
public void setUserCredentials(Credentials userCredentials) {
this.userCredentials = userCredentials;
}
}