Test Failed
Push — master ( 7c8fa2...c3290a )
by Misagh
27:59 queued 13:41
created

setAuthenticationAttributeRelease(AuthenticationAttributeReleaseProperties)   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
dl 0
loc 2
rs 10
1
package org.apereo.cas.configuration.model.core.authentication;
2
3
import org.apereo.cas.configuration.model.support.cassandra.authentication.CassandraAuthenticationProperties;
4
import org.apereo.cas.configuration.model.support.clouddirectory.CloudDirectoryProperties;
5
import org.apereo.cas.configuration.model.support.couchbase.authentication.CouchbaseAuthenticationProperties;
6
import org.apereo.cas.configuration.model.support.digest.DigestProperties;
7
import org.apereo.cas.configuration.model.support.fortress.FortressAuthenticationProperties;
8
import org.apereo.cas.configuration.model.support.generic.AcceptAuthenticationProperties;
9
import org.apereo.cas.configuration.model.support.generic.FileAuthenticationProperties;
10
import org.apereo.cas.configuration.model.support.generic.RejectAuthenticationProperties;
11
import org.apereo.cas.configuration.model.support.generic.RemoteAddressAuthenticationProperties;
12
import org.apereo.cas.configuration.model.support.generic.ShiroAuthenticationProperties;
13
import org.apereo.cas.configuration.model.support.gua.GraphicalUserAuthenticationProperties;
14
import org.apereo.cas.configuration.model.support.jaas.JaasAuthenticationProperties;
15
import org.apereo.cas.configuration.model.support.jdbc.JdbcAuthenticationProperties;
16
import org.apereo.cas.configuration.model.support.ldap.LdapAuthenticationProperties;
17
import org.apereo.cas.configuration.model.support.mfa.MultifactorAuthenticationProperties;
18
import org.apereo.cas.configuration.model.support.mongo.MongoAuthenticationProperties;
19
import org.apereo.cas.configuration.model.support.ntlm.NtlmProperties;
20
import org.apereo.cas.configuration.model.support.oauth.OAuthProperties;
21
import org.apereo.cas.configuration.model.support.oidc.OidcProperties;
22
import org.apereo.cas.configuration.model.support.openid.OpenIdProperties;
23
import org.apereo.cas.configuration.model.support.pac4j.Pac4jProperties;
24
import org.apereo.cas.configuration.model.support.pm.PasswordManagementProperties;
25
import org.apereo.cas.configuration.model.support.radius.RadiusProperties;
26
import org.apereo.cas.configuration.model.support.rest.RestAuthenticationProperties;
27
import org.apereo.cas.configuration.model.support.saml.idp.SamlIdPProperties;
28
import org.apereo.cas.configuration.model.support.saml.shibboleth.ShibbolethIdPProperties;
29
import org.apereo.cas.configuration.model.support.spnego.SpnegoProperties;
30
import org.apereo.cas.configuration.model.support.surrogate.SurrogateAuthenticationProperties;
31
import org.apereo.cas.configuration.model.support.throttle.ThrottleProperties;
32
import org.apereo.cas.configuration.model.support.token.TokenAuthenticationProperties;
33
import org.apereo.cas.configuration.model.support.trusted.TrustedAuthenticationProperties;
34
import org.apereo.cas.configuration.model.support.wsfed.WsFederationDelegationProperties;
35
import org.apereo.cas.configuration.model.support.wsfed.WsFederationProperties;
36
import org.apereo.cas.configuration.model.support.x509.X509Properties;
37
import org.apereo.cas.configuration.support.RequiresModule;
38
import org.springframework.boot.context.properties.NestedConfigurationProperty;
39
40
import java.io.Serializable;
41
import java.util.ArrayList;
42
import java.util.List;
43
44
/**
45
 * This is {@link AuthenticationProperties}.
46
 *
47
 * @author Misagh Moayyed
48
 * @since 5.0.0
49
 */
50
@RequiresModule(name = "cas-server-core-authentication", automated = true)
51
public class AuthenticationProperties implements Serializable {
52
53
    private static final long serialVersionUID = -1233126985007049516L;
54
55
    /**
56
     * Couchbase authentication settings.
57
     */
58
    @NestedConfigurationProperty
59
    private CouchbaseAuthenticationProperties couchbase = new CouchbaseAuthenticationProperties();
60
61
    /**
62
     * Cassandra authentication settings.
63
     */
64
    @NestedConfigurationProperty
65
    private CassandraAuthenticationProperties cassandra = new CassandraAuthenticationProperties();
66
67
    /**
68
     * Cloud Directory authentication settings.
69
     */
70
    @NestedConfigurationProperty
71
    private CloudDirectoryProperties cloudDirectory = new CloudDirectoryProperties();
72
73
    /**
74
     * Surrogate authentication settings.
75
     */
76
    @NestedConfigurationProperty
77
    private SurrogateAuthenticationProperties surrogate = new SurrogateAuthenticationProperties();
78
79
    /**
80
     * Graphical User authentication settings.
81
     */
82
    @NestedConfigurationProperty
83
    private GraphicalUserAuthenticationProperties gua = new GraphicalUserAuthenticationProperties();
84
85
    /**
86
     * Password management settings.
87
     */
88
    @NestedConfigurationProperty
89
    private PasswordManagementProperties pm = new PasswordManagementProperties();
90
91
    /**
92
     * Adaptive authentication settings.
93
     */
94
    @NestedConfigurationProperty
95
    private AdaptiveAuthenticationProperties adaptive = new AdaptiveAuthenticationProperties();
96
97
    /**
98
     * Attribute repository settings.
99
     */
100
    @NestedConfigurationProperty
101
    private PrincipalAttributesProperties attributeRepository = new PrincipalAttributesProperties();
102
103
    /**
104
     * Digest authentication settings.
105
     */
106
    @NestedConfigurationProperty
107
    private DigestProperties digest = new DigestProperties();
108
109
    /**
110
     * REST-based authentication settings.
111
     */
112
    @NestedConfigurationProperty
113
    private RestAuthenticationProperties rest = new RestAuthenticationProperties();
114
115
    /**
116
     * Collection of settings related to LDAP authentication.
117
     * These settings are required to be indexed (i.e. ldap[0].xyz).
118
     */
119
    private List<LdapAuthenticationProperties> ldap = new ArrayList<>();
120
121
    /**
122
     * Authentication throttling settings.
123
     */
124
    @NestedConfigurationProperty
125
    private ThrottleProperties throttle = new ThrottleProperties();
126
127
    /**
128
     * SAML identity provider settings.
129
     */
130
    @NestedConfigurationProperty
131
    private SamlIdPProperties samlIdp = new SamlIdPProperties();
132
133
    /**
134
     * Customization of authentication errors and exceptions.
135
     */
136
    @NestedConfigurationProperty
137
    private AuthenticationExceptionsProperties exceptions = new AuthenticationExceptionsProperties();
138
139
    /**
140
     * Authentication policy settings.
141
     */
142
    @NestedConfigurationProperty
143
    private AuthenticationPolicyProperties policy = new AuthenticationPolicyProperties();
144
145
    /**
146
     * Accepting authentication based on statically defined users.
147
     */
148
    @NestedConfigurationProperty
149
    private AcceptAuthenticationProperties accept = new AcceptAuthenticationProperties();
150
151
    /**
152
     * File-based authentication.
153
     */
154
    @NestedConfigurationProperty
155
    private FileAuthenticationProperties file = new FileAuthenticationProperties();
156
157
    /**
158
     * Blacklist-based authentication.
159
     */
160
    @NestedConfigurationProperty
161
    private RejectAuthenticationProperties reject = new RejectAuthenticationProperties();
162
163
    /**
164
     * Authentication based on a remote-address of a request.
165
     */
166
    @NestedConfigurationProperty
167
    private RemoteAddressAuthenticationProperties remoteAddress = new RemoteAddressAuthenticationProperties();
168
169
    /**
170
     * Authentication settings when integrating CAS with a shibboleth IdP.
171
     */
172
    @NestedConfigurationProperty
173
    private ShibbolethIdPProperties shibIdp = new ShibbolethIdPProperties();
174
175
    /**
176
     * Shiro-based authentication.
177
     */
178
    @NestedConfigurationProperty
179
    private ShiroAuthenticationProperties shiro = new ShiroAuthenticationProperties();
180
181
    /**
182
     * Trusted authentication.
183
     */
184
    @NestedConfigurationProperty
185
    private TrustedAuthenticationProperties trusted = new TrustedAuthenticationProperties();
186
187
    /**
188
     * Collection of settings related to JAAS authentication.
189
     * These settings are required to be indexed (i.e. jaas[0].xyz).
190
     */
191
    private List<JaasAuthenticationProperties> jaas = new ArrayList<>();
192
193
    /**
194
     * JDBC authentication settings.
195
     */
196
    @NestedConfigurationProperty
197
    private JdbcAuthenticationProperties jdbc = new JdbcAuthenticationProperties();
198
199
    /**
200
     * MFA settings.
201
     */
202
    @NestedConfigurationProperty
203
    private MultifactorAuthenticationProperties mfa = new MultifactorAuthenticationProperties();
204
205
    /**
206
     * MongoDb authentication settings.
207
     */
208
    @NestedConfigurationProperty
209
    private MongoAuthenticationProperties mongo = new MongoAuthenticationProperties();
210
211
    /**
212
     * NTLM authentication settings.
213
     */
214
    @NestedConfigurationProperty
215
    private NtlmProperties ntlm = new NtlmProperties();
216
217
    /**
218
     * OAuth authentication settings.
219
     */
220
    @NestedConfigurationProperty
221
    private OAuthProperties oauth = new OAuthProperties();
222
223
    /**
224
     * OpenID Connect authentication settings.
225
     */
226
    @NestedConfigurationProperty
227
    private OidcProperties oidc = new OidcProperties();
228
229
    /**
230
     * OpenID authentication settings.
231
     */
232
    @NestedConfigurationProperty
233
    private OpenIdProperties openid = new OpenIdProperties();
234
235
    /**
236
     * Pac4j delegated authentication settings.
237
     */
238
    @NestedConfigurationProperty
239
    private Pac4jProperties pac4j = new Pac4jProperties();
240
241
    /**
242
     * RADIUS authentication settings.
243
     */
244
    @NestedConfigurationProperty
245
    private RadiusProperties radius = new RadiusProperties();
246
247
    /**
248
     * SPNEGO authentication settings.
249
     */
250
    @NestedConfigurationProperty
251
    private SpnegoProperties spnego = new SpnegoProperties();
252
253
    /**
254
     * Collection of settings related to WsFed delegated authentication.
255
     * These settings are required to be indexed (i.e. wsfed[0].xyz).
256
     */
257
    private List<WsFederationDelegationProperties> wsfed = new ArrayList<>();
258
259
    /**
260
     * WS-FED delegated authentication settings.
261
     */
262
    @NestedConfigurationProperty
263
    private WsFederationProperties wsfedIdp = new WsFederationProperties();
264
265
    /**
266
     * X509 authentication settings.
267
     */
268
    @NestedConfigurationProperty
269
    private X509Properties x509 = new X509Properties();
270
271
    /**
272
     * Token/JWT authentication settings.
273
     */
274
    @NestedConfigurationProperty
275
    private TokenAuthenticationProperties token = new TokenAuthenticationProperties();
276
277
    /**
278
     * Apache Fortress authentication settings.
279
     */
280
    @NestedConfigurationProperty
281
    private FortressAuthenticationProperties fortress = new FortressAuthenticationProperties();
282
283
    /**
284
     * Authentication attribute release settings.
285
     */
286
    @NestedConfigurationProperty
287
    private AuthenticationAttributeReleaseProperties authenticationAttributeRelease = new AuthenticationAttributeReleaseProperties();
288
289
    /**
290
     * Whether CAS authentication/protocol attributes
291
     * should be released as part of ticket validation.
292
     */
293
    private boolean releaseProtocolAttributes = true;
294
295
    public ShibbolethIdPProperties getShibIdp() {
296
        return shibIdp;
297
    }
298
299
    public void setShibIdp(final ShibbolethIdPProperties shibIdp) {
300
        this.shibIdp = shibIdp;
301
    }
302
303
    public SurrogateAuthenticationProperties getSurrogate() {
304
        return surrogate;
305
    }
306
307
    public void setSurrogate(final SurrogateAuthenticationProperties surrogate) {
308
        this.surrogate = surrogate;
309
    }
310
311
    public AuthenticationAttributeReleaseProperties getAuthenticationAttributeRelease() {
312
        return authenticationAttributeRelease;
313
    }
314
315
    public void setAuthenticationAttributeRelease(final AuthenticationAttributeReleaseProperties authenticationAttributeRelease) {
316
        this.authenticationAttributeRelease = authenticationAttributeRelease;
317
    }
318
319
    public boolean isReleaseProtocolAttributes() {
320
        return releaseProtocolAttributes;
321
    }
322
323
    public void setReleaseProtocolAttributes(final boolean releaseProtocolAttributes) {
324
        this.releaseProtocolAttributes = releaseProtocolAttributes;
325
    }
326
327
    public WsFederationProperties getWsfedIdp() {
328
        return wsfedIdp;
329
    }
330
331
    public void setWsfedIdp(final WsFederationProperties wsfedIdp) {
332
        this.wsfedIdp = wsfedIdp;
333
    }
334
335
    public TokenAuthenticationProperties getToken() {
336
        return token;
337
    }
338
339
    public void setToken(final TokenAuthenticationProperties token) {
340
        this.token = token;
341
    }
342
343
    public AuthenticationExceptionsProperties getExceptions() {
344
        return exceptions;
345
    }
346
347
    public void setExceptions(final AuthenticationExceptionsProperties exceptions) {
348
        this.exceptions = exceptions;
349
    }
350
351
    public AuthenticationPolicyProperties getPolicy() {
352
        return policy;
353
    }
354
355
    public AcceptAuthenticationProperties getAccept() {
356
        return accept;
357
    }
358
359
    public void setAccept(final AcceptAuthenticationProperties accept) {
360
        this.accept = accept;
361
    }
362
363
    public FileAuthenticationProperties getFile() {
364
        return file;
365
    }
366
367
    public void setFile(final FileAuthenticationProperties file) {
368
        this.file = file;
369
    }
370
371
    public RejectAuthenticationProperties getReject() {
372
        return reject;
373
    }
374
375
    public void setReject(final RejectAuthenticationProperties reject) {
376
        this.reject = reject;
377
    }
378
379
    public RemoteAddressAuthenticationProperties getRemoteAddress() {
380
        return remoteAddress;
381
    }
382
383
    public void setRemoteAddress(final RemoteAddressAuthenticationProperties remoteAddress) {
384
        this.remoteAddress = remoteAddress;
385
    }
386
387
    public ShiroAuthenticationProperties getShiro() {
388
        return shiro;
389
    }
390
391
    public void setShiro(final ShiroAuthenticationProperties shiro) {
392
        this.shiro = shiro;
393
    }
394
395
    public List<JaasAuthenticationProperties> getJaas() {
396
        return jaas;
397
    }
398
399
    public void setJaas(final List<JaasAuthenticationProperties> jaas) {
400
        this.jaas = jaas;
401
    }
402
403
    public JdbcAuthenticationProperties getJdbc() {
404
        return jdbc;
405
    }
406
407
    public void setJdbc(final JdbcAuthenticationProperties jdbc) {
408
        this.jdbc = jdbc;
409
    }
410
411
    public MultifactorAuthenticationProperties getMfa() {
412
        return mfa;
413
    }
414
415
    public void setMfa(final MultifactorAuthenticationProperties mfa) {
416
        this.mfa = mfa;
417
    }
418
419
    public MongoAuthenticationProperties getMongo() {
420
        return mongo;
421
    }
422
423
    public void setMongo(final MongoAuthenticationProperties mongo) {
424
        this.mongo = mongo;
425
    }
426
427
    public NtlmProperties getNtlm() {
428
        return ntlm;
429
    }
430
431
    public void setNtlm(final NtlmProperties ntlm) {
432
        this.ntlm = ntlm;
433
    }
434
435
    public OAuthProperties getOauth() {
436
        return oauth;
437
    }
438
439
    public void setOauth(final OAuthProperties oauth) {
440
        this.oauth = oauth;
441
    }
442
443
    public OidcProperties getOidc() {
444
        return oidc;
445
    }
446
447
    public void setOidc(final OidcProperties oidc) {
448
        this.oidc = oidc;
449
    }
450
451
    public OpenIdProperties getOpenid() {
452
        return openid;
453
    }
454
455
    public void setOpenid(final OpenIdProperties openid) {
456
        this.openid = openid;
457
    }
458
459
    public Pac4jProperties getPac4j() {
460
        return pac4j;
461
    }
462
463
    public void setPac4j(final Pac4jProperties pac4j) {
464
        this.pac4j = pac4j;
465
    }
466
467
    public RadiusProperties getRadius() {
468
        return radius;
469
    }
470
471
    public void setRadius(final RadiusProperties radius) {
472
        this.radius = radius;
473
    }
474
475
    public SpnegoProperties getSpnego() {
476
        return spnego;
477
    }
478
479
    public void setSpnego(final SpnegoProperties spnego) {
480
        this.spnego = spnego;
481
    }
482
    
483
    public List<WsFederationDelegationProperties> getWsfed() {
484
        return wsfed;
485
    }
486
487
    public void setWsfed(final List<WsFederationDelegationProperties> wsfed) {
488
        this.wsfed = wsfed;
489
    }
490
491
    public X509Properties getX509() {
492
        return x509;
493
    }
494
495
    public void setX509(final X509Properties x509) {
496
        this.x509 = x509;
497
    }
498
499
    public SamlIdPProperties getSamlIdp() {
500
        return samlIdp;
501
    }
502
503
    public void setSamlIdp(final SamlIdPProperties samlIdp) {
504
        this.samlIdp = samlIdp;
505
    }
506
507
    public ThrottleProperties getThrottle() {
508
        return throttle;
509
    }
510
511
    public void setThrottle(final ThrottleProperties throttle) {
512
        this.throttle = throttle;
513
    }
514
515
    public TrustedAuthenticationProperties getTrusted() {
516
        return trusted;
517
    }
518
519
    public void setTrusted(final TrustedAuthenticationProperties trusted) {
520
        this.trusted = trusted;
521
    }
522
    
523
    public List<LdapAuthenticationProperties> getLdap() {
524
        return ldap;
525
    }
526
527
    public void setLdap(final List<LdapAuthenticationProperties> ldap) {
528
        this.ldap = ldap;
529
    }
530
531
    public RestAuthenticationProperties getRest() {
532
        return rest;
533
    }
534
535
    public void setRest(final RestAuthenticationProperties rest) {
536
        this.rest = rest;
537
    }
538
539
    public DigestProperties getDigest() {
540
        return digest;
541
    }
542
543
    public void setDigest(final DigestProperties digest) {
544
        this.digest = digest;
545
    }
546
547
    public PrincipalAttributesProperties getAttributeRepository() {
548
        return attributeRepository;
549
    }
550
551
    public void setAttributeRepository(final PrincipalAttributesProperties attributeRepository) {
552
        this.attributeRepository = attributeRepository;
553
    }
554
555
    public AdaptiveAuthenticationProperties getAdaptive() {
556
        return adaptive;
557
    }
558
559
    public void setAdaptive(final AdaptiveAuthenticationProperties adaptive) {
560
        this.adaptive = adaptive;
561
    }
562
563
    public void setPolicy(final AuthenticationPolicyProperties policy) {
564
        this.policy = policy;
565
    }
566
567
    public PasswordManagementProperties getPm() {
568
        return pm;
569
    }
570
571
    public void setPm(final PasswordManagementProperties pm) {
572
        this.pm = pm;
573
    }
574
575
    public GraphicalUserAuthenticationProperties getGua() {
576
        return gua;
577
    }
578
579
    public void setGua(final GraphicalUserAuthenticationProperties gua) {
580
        this.gua = gua;
581
    }
582
583
    public CloudDirectoryProperties getCloudDirectory() {
584
        return cloudDirectory;
585
    }
586
587
    public void setCloudDirectory(final CloudDirectoryProperties cloudDirectory) {
588
        this.cloudDirectory = cloudDirectory;
589
    }
590
591
    public CassandraAuthenticationProperties getCassandra() {
592
        return cassandra;
593
    }
594
595
    public void setCassandra(final CassandraAuthenticationProperties cassandra) {
596
        this.cassandra = cassandra;
597
    }
598
599
    public CouchbaseAuthenticationProperties getCouchbase() {
600
        return couchbase;
601
    }
602
603
    public void setCouchbase(final CouchbaseAuthenticationProperties couchbase) {
604
        this.couchbase = couchbase;
605
    }
606
607
    public FortressAuthenticationProperties getFortress() {
608
        return fortress;
609
    }
610
611
    public void setFortress(final FortressAuthenticationProperties fortress) {
612
        this.fortress = fortress;
613
    }
614
}
615