Project

General

Profile

1
package eu.dnetlib.openaire.usermanagement;
2

    
3
import java.io.Serializable;
4

    
5
public class ServiceRequest {
6
    String client_name;
7
    String client_id;
8
    String logo_uri;
9
    String policy_uri;
10
    String[] contacts;
11
    String[] redirect_uris = new String[]{};
12
    String[] grant_types = new String[] {"client_credentials"};
13
    String token_endpoint_auth_method = "private_key_jwt";
14
    String token_endpoint_auth_signing_alg = "RS256";
15
    String jwks_uri;
16
    Jwks jwks;
17

    
18
    public String getClientName() {
19
        return client_name;
20
    }
21

    
22
    public void setClientName(String clientName) {
23
        this.client_name = clientName;
24
    }
25

    
26
    public String getClientId() {
27
        return client_id;
28
    }
29

    
30
    public void setClientId(String clientId) {
31
        this.client_id = clientId;
32
    }
33

    
34
    public String[] getRedirectUris() {
35
        return redirect_uris;
36
    }
37

    
38
    public void setRedirectUris(String[] redirectUris) {
39
        this.redirect_uris = redirectUris;
40
    }
41

    
42
    public String getLogoUri() {
43
        return logo_uri;
44
    }
45

    
46
    public void setLogoUri(String logoUri) {
47
        this.logo_uri = logoUri;
48
    }
49

    
50
    public String getPolicyUri() {
51
        return policy_uri;
52
    }
53

    
54
    public void setPolicyUri(String policyUri) {
55
        this.policy_uri = policyUri;
56
    }
57

    
58
    public String[] getContacts() {
59
        return contacts;
60
    }
61

    
62
    public void setContacts(String[] contacts) {
63
        this.contacts = contacts;
64
    }
65

    
66
    public String[] getGrantTypes() {
67
        return grant_types;
68
    }
69

    
70
    public void setGrantTypes(String[] grantTypes) {
71
        this.grant_types = grantTypes;
72
    }
73

    
74
    public String getToken_endpoint_auth_method() {
75
        return token_endpoint_auth_method;
76
    }
77

    
78
    public void setToken_endpoint_auth_method(String token_endpoint_auth_method) {
79
        this.token_endpoint_auth_method = token_endpoint_auth_method;
80
    }
81

    
82
    public String getTokenEndpointAuthSigningAlg() {
83
        return token_endpoint_auth_signing_alg;
84
    }
85

    
86
    public void setTokenEndpointAuthSigningAlg(String tokenEndpointAuthSigningAlg) {
87
        this.token_endpoint_auth_signing_alg = tokenEndpointAuthSigningAlg;
88
    }
89

    
90
    public String getJwksUri() {
91
        return jwks_uri;
92
    }
93

    
94
    public void setJwksUri(String jwksUri) {
95
        this.jwks_uri = jwksUri;
96
    }
97

    
98
    public Jwks getJwks() {
99
        return jwks;
100
    }
101

    
102
    public void setJwks(Jwks jwks) {
103
        this.jwks = jwks;
104
    }
105
}
106

    
107
class Jwks implements Serializable {
108
    Key[] keys;
109

    
110
    public Key[] getKeys() {
111
        return keys;
112
    }
113

    
114
    public void setKeys(Key[] keys) {
115
        this.keys = keys;
116
    }
117
}
118

    
119
class Key implements Serializable {
120
    String kty;
121
    String e;
122
    String kid;
123
    String alg;
124
    String n;
125

    
126
    public String getKty() {
127
        return kty;
128
    }
129

    
130
    public void setKty(String kty) {
131
        this.kty = kty;
132
    }
133

    
134
    public String getE() {
135
        return e;
136
    }
137

    
138
    public void setE(String e) {
139
        this.e = e;
140
    }
141

    
142
    public String getKid() {
143
        return kid;
144
    }
145

    
146
    public void setKid(String kid) {
147
        this.kid = kid;
148
    }
149

    
150
    public String getAlg() {
151
        return alg;
152
    }
153

    
154
    public void setAlg(String alg) {
155
        this.alg = alg;
156
    }
157

    
158
    public String getN() {
159
        return n;
160
    }
161

    
162
    public void setN(String n) {
163
        this.n = n;
164
    }
165
}
166

    
167

    
168

    
169

    
170

    
(15-15/18)