| margaretha | 230effb | 2018-11-29 17:28:18 +0100 | [diff] [blame] | 1 | package de.ids_mannheim.korap.oauth2.dto; |
| 2 | |
| margaretha | 4f4b9ab | 2021-04-30 17:33:21 +0200 | [diff] [blame^] | 3 | import com.fasterxml.jackson.annotation.JsonProperty; |
| 4 | |
| margaretha | bb1c145 | 2021-03-29 15:22:18 +0200 | [diff] [blame] | 5 | import de.ids_mannheim.korap.oauth2.constant.OAuth2ClientType; |
| 6 | |
| margaretha | 398f472 | 2019-01-09 19:07:20 +0100 | [diff] [blame] | 7 | /** Lists authorized OAuth2 clients of a user |
| 8 | * |
| 9 | * @author margaretha |
| 10 | * |
| 11 | */ |
| margaretha | 230effb | 2018-11-29 17:28:18 +0100 | [diff] [blame] | 12 | public class OAuth2UserClientDto { |
| margaretha | 4f4b9ab | 2021-04-30 17:33:21 +0200 | [diff] [blame^] | 13 | @JsonProperty("client_id") |
| margaretha | 230effb | 2018-11-29 17:28:18 +0100 | [diff] [blame] | 14 | private String clientId; |
| margaretha | 4f4b9ab | 2021-04-30 17:33:21 +0200 | [diff] [blame^] | 15 | @JsonProperty("client_name") |
| margaretha | 230effb | 2018-11-29 17:28:18 +0100 | [diff] [blame] | 16 | private String clientName; |
| margaretha | 4f4b9ab | 2021-04-30 17:33:21 +0200 | [diff] [blame^] | 17 | @JsonProperty("client_type") |
| margaretha | bb1c145 | 2021-03-29 15:22:18 +0200 | [diff] [blame] | 18 | private OAuth2ClientType clientType; |
| margaretha | c20cd34 | 2019-11-14 10:59:39 +0100 | [diff] [blame] | 19 | private String description; |
| 20 | private String url; |
| margaretha | 230effb | 2018-11-29 17:28:18 +0100 | [diff] [blame] | 21 | |
| 22 | public String getClientName () { |
| 23 | return clientName; |
| 24 | } |
| 25 | public void setClientName (String clientName) { |
| 26 | this.clientName = clientName; |
| 27 | } |
| 28 | public String getClientId () { |
| 29 | return clientId; |
| 30 | } |
| 31 | public void setClientId (String clientId) { |
| 32 | this.clientId = clientId; |
| 33 | } |
| margaretha | c20cd34 | 2019-11-14 10:59:39 +0100 | [diff] [blame] | 34 | public String getDescription () { |
| 35 | return description; |
| 36 | } |
| 37 | public void setDescription (String description) { |
| 38 | this.description = description; |
| 39 | } |
| 40 | public String getUrl () { |
| 41 | return url; |
| 42 | } |
| 43 | public void setUrl (String url) { |
| 44 | this.url = url; |
| 45 | } |
| margaretha | bb1c145 | 2021-03-29 15:22:18 +0200 | [diff] [blame] | 46 | public OAuth2ClientType getClientType () { |
| 47 | return clientType; |
| 48 | } |
| 49 | public void setClientType (OAuth2ClientType clientType) { |
| 50 | this.clientType = clientType; |
| 51 | } |
| margaretha | 230effb | 2018-11-29 17:28:18 +0100 | [diff] [blame] | 52 | } |