Test Failed
Push — master ( c886ea...fc43c4 )
by Misagh
25:04
created

setTwilio(TwilioProperties)   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package org.apereo.cas.configuration;
2
3
import org.apereo.cas.configuration.model.core.CasServerProperties;
4
import org.apereo.cas.configuration.model.core.HostProperties;
5
import org.apereo.cas.configuration.model.core.audit.AuditProperties;
6
import org.apereo.cas.configuration.model.core.authentication.AuthenticationProperties;
7
import org.apereo.cas.configuration.model.core.authentication.HttpClientProperties;
8
import org.apereo.cas.configuration.model.core.authentication.PersonDirectoryPrincipalResolverProperties;
9
import org.apereo.cas.configuration.model.core.events.EventsProperties;
10
import org.apereo.cas.configuration.model.core.logout.LogoutProperties;
11
import org.apereo.cas.configuration.model.core.metrics.MetricsProperties;
12
import org.apereo.cas.configuration.model.core.monitor.MonitorProperties;
13
import org.apereo.cas.configuration.model.core.rest.RestProperties;
14
import org.apereo.cas.configuration.model.core.services.ServiceRegistryProperties;
15
import org.apereo.cas.configuration.model.core.slo.SloProperties;
16
import org.apereo.cas.configuration.model.core.sso.SsoProperties;
17
import org.apereo.cas.configuration.model.core.util.TicketProperties;
18
import org.apereo.cas.configuration.model.core.web.MessageBundleProperties;
19
import org.apereo.cas.configuration.model.core.web.security.AdminPagesSecurityProperties;
20
import org.apereo.cas.configuration.model.core.web.security.HttpWebRequestProperties;
21
import org.apereo.cas.configuration.model.core.web.view.ViewProperties;
22
import org.apereo.cas.configuration.model.support.analytics.GoogleAnalyticsProperties;
23
import org.apereo.cas.configuration.model.support.aup.AcceptableUsagePolicyProperties;
24
import org.apereo.cas.configuration.model.support.captcha.GoogleRecaptchaProperties;
25
import org.apereo.cas.configuration.model.support.clearpass.ClearpassProperties;
26
import org.apereo.cas.configuration.model.support.consent.ConsentProperties;
27
import org.apereo.cas.configuration.model.support.cookie.TicketGrantingCookieProperties;
28
import org.apereo.cas.configuration.model.support.cookie.WarningCookieProperties;
29
import org.apereo.cas.configuration.model.support.geo.googlemaps.GoogleMapsProperties;
30
import org.apereo.cas.configuration.model.support.geo.maxmind.MaxmindProperties;
31
import org.apereo.cas.configuration.model.support.interrupt.InterruptProperties;
32
import org.apereo.cas.configuration.model.support.jpa.DatabaseProperties;
33
import org.apereo.cas.configuration.model.support.saml.SamlCoreProperties;
34
import org.apereo.cas.configuration.model.support.saml.googleapps.GoogleAppsProperties;
35
import org.apereo.cas.configuration.model.support.saml.mdui.SamlMetadataUIProperties;
36
import org.apereo.cas.configuration.model.support.saml.shibboleth.ShibbolethAttributeResolverProperties;
37
import org.apereo.cas.configuration.model.support.saml.sps.SamlServiceProviderProperties;
38
import org.apereo.cas.configuration.model.support.scim.ScimProperties;
39
import org.apereo.cas.configuration.model.support.sms.ClickatellProperties;
40
import org.apereo.cas.configuration.model.support.sms.TextMagicProperties;
41
import org.apereo.cas.configuration.model.support.sms.TwilioProperties;
42
import org.apereo.cas.configuration.model.support.themes.ThemeProperties;
43
import org.apereo.cas.configuration.model.webapp.LocaleProperties;
44
import org.apereo.cas.configuration.model.webapp.WebflowProperties;
45
import org.apereo.cas.configuration.model.webapp.mgmt.ManagementWebappProperties;
46
import org.springframework.boot.context.properties.ConfigurationProperties;
47
import org.springframework.boot.context.properties.NestedConfigurationProperty;
48
49
import java.io.Serializable;
50
51
/**
52
 * This is {@link CasConfigurationProperties}.
53
 *
54
 * @author Misagh Moayyed
55
 * @since 5.0.0
56
 */
57
@ConfigurationProperties(value = "cas")
58
public class CasConfigurationProperties implements Serializable {
59
    /**
60
     * Prefix used for all CAS-specific settings.
61
     */
62
    public static final String PREFIX = "cas";
63
64
    private static final long serialVersionUID = -8620267783496071683L;
65
66
    /**
67
     * Interrupt/notification functionality.
68
     */
69
    @NestedConfigurationProperty
70
    private InterruptProperties interrupt = new InterruptProperties();
71
72
    /**
73
     * Attribute consent functionality.
74
     */
75
    @NestedConfigurationProperty
76
    private ConsentProperties consent = new ConsentProperties();
77
78
    /**
79
     * SCIM functionality.
80
     */
81
    @NestedConfigurationProperty
82
    private ScimProperties scim = new ScimProperties();
83
84
    /**
85
     * General settings for authentication.
86
     */
87
    @NestedConfigurationProperty
88
    private AuthenticationProperties authn = new AuthenticationProperties();
89
90
    /**
91
     * Authentication audit functionality.
92
     */
93
    @NestedConfigurationProperty
94
    private AuditProperties audit = new AuditProperties();
95
96
    /**
97
     * Http client and outgoing connections settings.
98
     */
99
    @NestedConfigurationProperty
100
    private HttpClientProperties httpClient = new HttpClientProperties();
101
102
    /**
103
     * Person directory and principal resolution functionality.
104
     */
105
    @NestedConfigurationProperty
106
    private PersonDirectoryPrincipalResolverProperties personDirectory = new PersonDirectoryPrincipalResolverProperties();
107
108
    /**
109
     * Authentication events functionality.
110
     */
111
    @NestedConfigurationProperty
112
    private EventsProperties events = new EventsProperties();
113
114
    /**
115
     * Settings that define this CAS host.
116
     */
117
    @NestedConfigurationProperty
118
    private HostProperties host = new HostProperties();
119
120
    /**
121
     * Logout functionality.
122
     */
123
    @NestedConfigurationProperty
124
    private LogoutProperties logout = new LogoutProperties();
125
126
    /**
127
     * Metrics functionality.
128
     */
129
    @NestedConfigurationProperty
130
    private MetricsProperties metrics = new MetricsProperties();
131
132
    /**
133
     * Monitoring functionality.
134
     */
135
    @NestedConfigurationProperty
136
    private MonitorProperties monitor = new MonitorProperties();
137
138
    /**
139
     * REST API functionality.
140
     */
141
    @NestedConfigurationProperty
142
    private RestProperties rest = new RestProperties();
143
144
    /**
145
     * Settings that define this CAS server instance.
146
     */
147
    @NestedConfigurationProperty
148
    private CasServerProperties server = new CasServerProperties();
149
150
    /**
151
     * Service registry functionality.
152
     */
153
    @NestedConfigurationProperty
154
    private ServiceRegistryProperties serviceRegistry = new ServiceRegistryProperties();
155
156
    /**
157
     * SLO functionality.
158
     */
159
    @NestedConfigurationProperty
160
    private SloProperties slo = new SloProperties();
161
162
    /**
163
     * SSO functionality.
164
     */
165
    @NestedConfigurationProperty
166
    private SsoProperties sso = new SsoProperties();
167
168
    /**
169
     * Ticketing functionality.
170
     */
171
    @NestedConfigurationProperty
172
    private TicketProperties ticket = new TicketProperties();
173
174
    /**
175
     * Message bundles and internationalization functionality.
176
     */
177
    @NestedConfigurationProperty
178
    private MessageBundleProperties messageBundle = new MessageBundleProperties();
179
180
    /**
181
     * Admin pages and their security, controling endpoints, etc.
182
     */
183
    @NestedConfigurationProperty
184
    private AdminPagesSecurityProperties adminPagesSecurity = new AdminPagesSecurityProperties();
185
186
    /**
187
     * Settings that control filtering of the incoming http requests.
188
     */
189
    @NestedConfigurationProperty
190
    private HttpWebRequestProperties httpWebRequest = new HttpWebRequestProperties();
191
192
    /**
193
     * Views and UI functionality.
194
     */
195
    @NestedConfigurationProperty
196
    private ViewProperties view = new ViewProperties();
197
198
    /**
199
     * Google Analytics functionality.
200
     */
201
    @NestedConfigurationProperty
202
    private GoogleAnalyticsProperties googleAnalytics = new GoogleAnalyticsProperties();
203
204
    /**
205
     * Google reCAPTCHA settings.
206
     */
207
    @NestedConfigurationProperty
208
    private GoogleRecaptchaProperties googleRecaptcha = new GoogleRecaptchaProperties();
209
210
    /**
211
     * Twilio settings.
212
     */
213
    @NestedConfigurationProperty
214
    private TwilioProperties twilio = new TwilioProperties();
215
216
    /**
217
     * TextMagic settings.
218
     */
219
    @NestedConfigurationProperty
220
    private TextMagicProperties textMagic = new TextMagicProperties();
221
222
    /**
223
     * Clickatell settings.
224
     */
225
    @NestedConfigurationProperty
226
    private ClickatellProperties clickatell = new ClickatellProperties();
227
228
    /**
229
     * AUP settings.
230
     */
231
    @NestedConfigurationProperty
232
    private AcceptableUsagePolicyProperties acceptableUsagePolicy = new AcceptableUsagePolicyProperties();
233
234
    /**
235
     * Clearpass settings.
236
     */
237
    @NestedConfigurationProperty
238
    private ClearpassProperties clearpass = new ClearpassProperties();
239
240
    /**
241
     * Ticket-granting cookie settings.
242
     */
243
    @NestedConfigurationProperty
244
    private TicketGrantingCookieProperties tgc = new TicketGrantingCookieProperties();
245
246
    /**
247
     * Warning cookie settings.
248
     */
249
    @NestedConfigurationProperty
250
    private WarningCookieProperties warningCookie = new WarningCookieProperties();
251
252
    /**
253
     * SAML SP integration settings.
254
     */
255
    @NestedConfigurationProperty
256
    private SamlServiceProviderProperties samlSp = new SamlServiceProviderProperties();
257
258
    /**
259
     * MaxMind settings.
260
     */
261
    @NestedConfigurationProperty
262
    private MaxmindProperties maxmind = new MaxmindProperties();
263
264
    /**
265
     * Google Maps settings.
266
     */
267
    @NestedConfigurationProperty
268
    private GoogleMapsProperties googleMaps = new GoogleMapsProperties();
269
270
    /**
271
     * General database and hibernate settings.
272
     */
273
    @NestedConfigurationProperty
274
    private DatabaseProperties jdbc = new DatabaseProperties();
275
276
    /**
277
     * Google Apps integration settings.
278
     */
279
    @NestedConfigurationProperty
280
    private GoogleAppsProperties googleApps = new GoogleAppsProperties();
281
282
    /**
283
     * SAML Metadata UI settings and parsing.
284
     */
285
    @NestedConfigurationProperty
286
    private SamlMetadataUIProperties samlMetadataUi = new SamlMetadataUIProperties();
287
288
    /**
289
     * SAML Core functionality and settings.
290
     */
291
    @NestedConfigurationProperty
292
    private SamlCoreProperties samlCore = new SamlCoreProperties();
293
294
    /**
295
     * Shibboleth attribute resolution settings.
296
     */
297
    @NestedConfigurationProperty
298
    private ShibbolethAttributeResolverProperties shibAttributeResolver = new ShibbolethAttributeResolverProperties();
299
300
    /**
301
     * UI and theme settings.
302
     */
303
    @NestedConfigurationProperty
304
    private ThemeProperties theme = new ThemeProperties();
305
306
    /**
307
     * Locale and internationalization settings.
308
     */
309
    @NestedConfigurationProperty
310
    private LocaleProperties locale = new LocaleProperties();
311
312
    /**
313
     * CAS Management Webapp functionality.
314
     */
315
    @NestedConfigurationProperty
316
    private ManagementWebappProperties mgmt = new ManagementWebappProperties();
317
318
    /**
319
     * Spring Webflow functionality.
320
     */
321
    @NestedConfigurationProperty
322
    private WebflowProperties webflow = new WebflowProperties();
323
324
    public ConsentProperties getConsent() {
325
        return consent;
326
    }
327
328
    public void setConsent(final ConsentProperties consent) {
329
        this.consent = consent;
330
    }
331
332
    public AuditProperties getAudit() {
333
        return audit;
334
    }
335
336
    public void setAudit(final AuditProperties audit) {
337
        this.audit = audit;
338
    }
339
340
    public HttpClientProperties getHttpClient() {
341
        return httpClient;
342
    }
343
344
    public void setHttpClient(final HttpClientProperties httpClient) {
345
        this.httpClient = httpClient;
346
    }
347
348
    public PersonDirectoryPrincipalResolverProperties getPersonDirectory() {
349
        return personDirectory;
350
    }
351
352
    public void setPersonDirectory(final PersonDirectoryPrincipalResolverProperties personDirectory) {
353
        this.personDirectory = personDirectory;
354
    }
355
356
    public RestProperties getRest() {
357
        return rest;
358
    }
359
360
    public void setRest(final RestProperties rest) {
361
        this.rest = rest;
362
    }
363
364
    public EventsProperties getEvents() {
365
        return events;
366
    }
367
368
    public void setEvents(final EventsProperties events) {
369
        this.events = events;
370
    }
371
372
    public HostProperties getHost() {
373
        return host;
374
    }
375
376
    public void setHost(final HostProperties host) {
377
        this.host = host;
378
    }
379
380
    public LogoutProperties getLogout() {
381
        return logout;
382
    }
383
384
    public void setLogout(final LogoutProperties logout) {
385
        this.logout = logout;
386
    }
387
388
    public MetricsProperties getMetrics() {
389
        return metrics;
390
    }
391
392
    public void setMetrics(final MetricsProperties metrics) {
393
        this.metrics = metrics;
394
    }
395
396
    public MonitorProperties getMonitor() {
397
        return monitor;
398
    }
399
400
    public void setMonitor(final MonitorProperties monitor) {
401
        this.monitor = monitor;
402
    }
403
404
    public CasServerProperties getServer() {
405
        return server;
406
    }
407
408
    public void setServer(final CasServerProperties server) {
409
        this.server = server;
410
    }
411
412
    public ServiceRegistryProperties getServiceRegistry() {
413
        return serviceRegistry;
414
    }
415
416
    public void setServiceRegistry(final ServiceRegistryProperties serviceRegistry) {
417
        this.serviceRegistry = serviceRegistry;
418
    }
419
420
    public SloProperties getSlo() {
421
        return slo;
422
    }
423
424
    public void setSlo(final SloProperties slo) {
425
        this.slo = slo;
426
    }
427
428
    public SsoProperties getSso() {
429
        return sso;
430
    }
431
432
    public void setSso(final SsoProperties sso) {
433
        this.sso = sso;
434
    }
435
436
    public TicketProperties getTicket() {
437
        return ticket;
438
    }
439
440
    public void setTicket(final TicketProperties ticket) {
441
        this.ticket = ticket;
442
    }
443
444
    public MessageBundleProperties getMessageBundle() {
445
        return messageBundle;
446
    }
447
448
    public void setMessageBundle(final MessageBundleProperties messageBundle) {
449
        this.messageBundle = messageBundle;
450
    }
451
452
    public AdminPagesSecurityProperties getAdminPagesSecurity() {
453
        return adminPagesSecurity;
454
    }
455
456
    public void setAdminPagesSecurity(final AdminPagesSecurityProperties adminPagesSecurity) {
457
        this.adminPagesSecurity = adminPagesSecurity;
458
    }
459
460
    public HttpWebRequestProperties getHttpWebRequest() {
461
        return httpWebRequest;
462
    }
463
464
    public void setHttpWebRequest(final HttpWebRequestProperties httpWebRequest) {
465
        this.httpWebRequest = httpWebRequest;
466
    }
467
468
    public ViewProperties getView() {
469
        return view;
470
    }
471
472
    public void setView(final ViewProperties view) {
473
        this.view = view;
474
    }
475
476
    public GoogleAnalyticsProperties getGoogleAnalytics() {
477
        return googleAnalytics;
478
    }
479
480
    public void setGoogleAnalytics(final GoogleAnalyticsProperties googleAnalytics) {
481
        this.googleAnalytics = googleAnalytics;
482
    }
483
484
    public AcceptableUsagePolicyProperties getAcceptableUsagePolicy() {
485
        return acceptableUsagePolicy;
486
    }
487
488
    public void setAcceptableUsagePolicy(final AcceptableUsagePolicyProperties acceptableUsagePolicy) {
489
        this.acceptableUsagePolicy = acceptableUsagePolicy;
490
    }
491
492
    public ClearpassProperties getClearpass() {
493
        return clearpass;
494
    }
495
496
    public void setClearpass(final ClearpassProperties clearpass) {
497
        this.clearpass = clearpass;
498
    }
499
500
    public TicketGrantingCookieProperties getTgc() {
501
        return tgc;
502
    }
503
504
    public void setTgc(final TicketGrantingCookieProperties tgc) {
505
        this.tgc = tgc;
506
    }
507
508
    public WarningCookieProperties getWarningCookie() {
509
        return warningCookie;
510
    }
511
512
    public void setWarningCookie(final WarningCookieProperties warningCookie) {
513
        this.warningCookie = warningCookie;
514
    }
515
516
    public MaxmindProperties getMaxmind() {
517
        return maxmind;
518
    }
519
520
    public void setMaxmind(final MaxmindProperties maxmind) {
521
        this.maxmind = maxmind;
522
    }
523
524
    public DatabaseProperties getJdbc() {
525
        return jdbc;
526
    }
527
528
    public void setJdbc(final DatabaseProperties jdbc) {
529
        this.jdbc = jdbc;
530
    }
531
532
    public GoogleAppsProperties getGoogleApps() {
533
        return googleApps;
534
    }
535
536
    public void setGoogleApps(final GoogleAppsProperties googleApps) {
537
        this.googleApps = googleApps;
538
    }
539
540
    public SamlMetadataUIProperties getSamlMetadataUi() {
541
        return samlMetadataUi;
542
    }
543
544
    public void setSamlMetadataUi(final SamlMetadataUIProperties samlMetadataUi) {
545
        this.samlMetadataUi = samlMetadataUi;
546
    }
547
548
    public SamlCoreProperties getSamlCore() {
549
        return samlCore;
550
    }
551
552
    public void setSamlCore(final SamlCoreProperties samlCore) {
553
        this.samlCore = samlCore;
554
    }
555
556
    public ShibbolethAttributeResolverProperties getShibAttributeResolver() {
557
        return shibAttributeResolver;
558
    }
559
560
    public void setShibAttributeResolver(final ShibbolethAttributeResolverProperties shibAttributeResolver) {
561
        this.shibAttributeResolver = shibAttributeResolver;
562
    }
563
564
    public ThemeProperties getTheme() {
565
        return theme;
566
    }
567
568
    public void setTheme(final ThemeProperties theme) {
569
        this.theme = theme;
570
    }
571
572
    public LocaleProperties getLocale() {
573
        return locale;
574
    }
575
576
    public void setLocale(final LocaleProperties locale) {
577
        this.locale = locale;
578
    }
579
580
    public ManagementWebappProperties getMgmt() {
581
        return mgmt;
582
    }
583
584
    public void setMgmt(final ManagementWebappProperties mgmt) {
585
        this.mgmt = mgmt;
586
    }
587
588
    public WebflowProperties getWebflow() {
589
        return webflow;
590
    }
591
592
    public void setWebflow(final WebflowProperties webflow) {
593
        this.webflow = webflow;
594
    }
595
596
    public AuthenticationProperties getAuthn() {
597
        return authn;
598
    }
599
600
    public void setAuthn(final AuthenticationProperties authn) {
601
        this.authn = authn;
602
    }
603
604
    public GoogleMapsProperties getGoogleMaps() {
605
        return googleMaps;
606
    }
607
608
    public void setGoogleMaps(final GoogleMapsProperties googleMaps) {
609
        this.googleMaps = googleMaps;
610
    }
611
612
    public GoogleRecaptchaProperties getGoogleRecaptcha() {
613
        return googleRecaptcha;
614
    }
615
616
    public void setGoogleRecaptcha(final GoogleRecaptchaProperties googleRecaptcha) {
617
        this.googleRecaptcha = googleRecaptcha;
618
    }
619
620
    public SamlServiceProviderProperties getSamlSp() {
621
        return samlSp;
622
    }
623
624
    public void setSamlSp(final SamlServiceProviderProperties samlSp) {
625
        this.samlSp = samlSp;
626
    }
627
628
    public TwilioProperties getTwilio() {
629
        return twilio;
630
    }
631
632
    public void setTwilio(final TwilioProperties twilio) {
633
        this.twilio = twilio;
634
    }
635
636
    public TextMagicProperties getTextMagic() {
637
        return textMagic;
638
    }
639
640
    public void setTextMagic(final TextMagicProperties textMagic) {
641
        this.textMagic = textMagic;
642
    }
643
644
    public ScimProperties getScim() {
645
        return scim;
646
    }
647
648
    public void setScim(final ScimProperties scim) {
649
        this.scim = scim;
650
    }
651
652
    public ClickatellProperties getClickatell() {
653
        return clickatell;
654
    }
655
656
    public void setClickatell(final ClickatellProperties clickatell) {
657
        this.clickatell = clickatell;
658
    }
659
660
    public InterruptProperties getInterrupt() {
661
        return interrupt;
662
    }
663
664
    public void setInterrupt(final InterruptProperties interrupt) {
665
        this.interrupt = interrupt;
666
    }
667
}
668