Debian Codegraph @

src/main/org/h2/security/auth/RealmConfig.java

raw
1 /*
2 * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0,
3 * and the EPL 1.0 (https://h2database.com/html/license.html).
4 * Initial Developer: Alessandro Ventura
5 */
6 package org.h2.security.auth;
7
8 import java.util.ArrayList;
9 import java.util.List;
10
11 /**
12 * Configuration for authentication realm.
13 */
14 public class RealmConfig implements HasConfigProperties {
15
16 private String name;
17 private String validatorClass;
18 private List<PropertyConfig> properties;
19
20 /**
21 * Gets realm's name.
22 *
23 * @return realm's name.
24 */
25 public String getName() {
26 return name;
27 }
28
29 /**
30 * Sets realm's name.
31 *
32 * @param name realm's name.
33 */
34 public void setName(String name) {
35 this.name = name;
36 }
37
38 /**
39 * Gets validator class name.
40 *
41 * @return validator class name.
42 */
43 public String getValidatorClass() {
44 return validatorClass;
45 }
46
47 /**
48 * Sets validator class name.
49 *
50 * @param validatorClass validator class name.
51 */
52 public void setValidatorClass(String validatorClass) {
53 this.validatorClass = validatorClass;
54 }
55
56 @Override
57 public List<PropertyConfig> getProperties() {
58 if (properties == null) {
59 properties = new ArrayList<>();
60 }
61 return properties;
62 }
63
64 }