Skip to content

Package: SimpleSettingKeys

SimpleSettingKeys

nameinstructionbranchcomplexitylinemethod
SimpleSettingKeys(String, int, String)
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
key()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 37 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Red Hat Inc and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Red Hat Inc - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.security.registration.simple.setting;
14:
15: import org.eclipse.kapua.commons.setting.SettingKey;
16:
17: /**
18: * Authorization setting key.
19: */
20: public enum SimpleSettingKeys implements SettingKey {
21: SIMPLE_ROOT_ACCOUNT("auto.registration.simple.rootAccount"), //
22: SIMPLE_MAX_NUMBER_OF_CHILD_USERS("auto.registration.simple.maximumNumberOfChildUsers"),
23: ACCOUNT_EXPIRATION_DATE_DAYS("auto.registration.simple.accountExpirationDate.days");
24:
25: private String key;
26:
27: private SimpleSettingKeys(String key) {
28: this.key = key;
29: }
30:
31: @Override
32: public String key() {
33: return key;
34: }
35: }