Last change
on this file since 6fe77af was 84d0fbb, checked in by Ema <ema_spirova@…>, 3 years ago |
spring security 2.0
|
-
Property mode
set to
100644
|
File size:
758 bytes
|
Rev | Line | |
---|
[84d0fbb] | 1 | package finki.diplomska.tripplanner.payload;
|
---|
| 2 |
|
---|
| 3 | public class JWTLoginSucessReponse {
|
---|
| 4 |
|
---|
| 5 | private boolean success;
|
---|
| 6 | private String token;
|
---|
| 7 |
|
---|
| 8 | public JWTLoginSucessReponse(boolean success, String token) {
|
---|
| 9 | this.success = success;
|
---|
| 10 | this.token = token;
|
---|
| 11 | }
|
---|
| 12 |
|
---|
| 13 | public boolean isSuccess() {
|
---|
| 14 | return success;
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public void setSuccess(boolean success) {
|
---|
| 18 | this.success = success;
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | public String getToken() {
|
---|
| 22 | return token;
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | public void setToken(String token) {
|
---|
| 26 | this.token = token;
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | @Override
|
---|
| 30 | public String toString() {
|
---|
| 31 | return "JWTLoginSucessReponse{" +
|
---|
| 32 | "success=" + success +
|
---|
| 33 | ", token='" + token + '\'' +
|
---|
| 34 | '}';
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.