View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.syncope.common.keymaster.client.api;
20  
21  import org.springframework.boot.context.properties.ConfigurationProperties;
22  
23  @ConfigurationProperties("keymaster")
24  public class KeymasterProperties {
25  
26      private String address;
27  
28      private String username;
29  
30      private String password;
31  
32      private int baseSleepTimeMs = 100;
33  
34      private int maxRetries = 3;
35  
36      private boolean enableAutoRegistration = true;
37  
38      public String getAddress() {
39          return address;
40      }
41  
42      public void setAddress(final String address) {
43          this.address = address;
44      }
45  
46      public String getUsername() {
47          return username;
48      }
49  
50      public void setUsername(final String username) {
51          this.username = username;
52      }
53  
54      public String getPassword() {
55          return password;
56      }
57  
58      public void setPassword(final String password) {
59          this.password = password;
60      }
61  
62      public int getBaseSleepTimeMs() {
63          return baseSleepTimeMs;
64      }
65  
66      public void setBaseSleepTimeMs(final int baseSleepTimeMs) {
67          this.baseSleepTimeMs = baseSleepTimeMs;
68      }
69  
70      public int getMaxRetries() {
71          return maxRetries;
72      }
73  
74      public void setMaxRetries(final int maxRetries) {
75          this.maxRetries = maxRetries;
76      }
77  
78      public boolean isEnableAutoRegistration() {
79          return enableAutoRegistration;
80      }
81  
82      public void setEnableAutoRegistration(final boolean enableAutoRegistration) {
83          this.enableAutoRegistration = enableAutoRegistration;
84      }
85  }