1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package com.hack23.cia.service.api.action.user;
20
21 import java.util.ArrayList;
22 import java.util.List;
23 import java.util.stream.Collectors;
24
25 import com.hack23.cia.service.api.action.common.AbstractResponse;
26
27
28
29
30
31 public final class SetGoogleAuthenticatorCredentialResponse extends AbstractResponse {
32
33
34 private static final long serialVersionUID = 1L;
35
36
37
38 private String googleAuthKey;
39
40
41 private Integer googleAuthVerificationCode;
42
43
44 private List<Integer> googleAuthScratchCodes = new ArrayList<>();
45
46
47 private String otpAuthTotpURL;
48
49
50
51
52
53
54
55 public SetGoogleAuthenticatorCredentialResponse(final ServiceResult result) {
56 super(result);
57 }
58
59
60
61
62
63
64 public String getGoogleAuthKey() {
65 return googleAuthKey;
66 }
67
68
69
70
71
72
73
74 public void setGoogleAuthKey(String googleAuthKey) {
75 this.googleAuthKey = googleAuthKey;
76 }
77
78
79
80
81
82
83 public Integer getGoogleAuthVerificationCode() {
84 return googleAuthVerificationCode;
85 }
86
87
88
89
90
91
92
93 public void setGoogleAuthVerificationCode(Integer googleAuthVerificationCode) {
94 this.googleAuthVerificationCode = googleAuthVerificationCode;
95 }
96
97
98
99
100
101
102 public List<Integer> getGoogleAuthScratchCodes() {
103 return googleAuthScratchCodes.stream().collect(Collectors.toList());
104 }
105
106
107
108
109
110
111
112 public void setGoogleAuthScratchCodes(List<Integer> googleAuthScratchCodes) {
113 if (googleAuthScratchCodes != null) {
114 this.googleAuthScratchCodes = googleAuthScratchCodes.stream().collect(Collectors.toList());
115 }
116 }
117
118
119
120
121
122
123 public String getOtpAuthTotpURL() {
124 return otpAuthTotpURL;
125 }
126
127
128
129
130
131
132
133 public void setOtpAuthTotpURL(String otpAuthTotpURL) {
134 this.otpAuthTotpURL = otpAuthTotpURL;
135 }
136
137 }