/
MFAEmailOTPConfiguration.java
88 lines (73 loc) · 2.64 KB
/
MFAEmailOTPConfiguration.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.multi.factor.authentication.email.otp.configuration;
import aQute.bnd.annotation.metatype.Meta;
import com.liferay.portal.configuration.metatype.annotations.ExtendedObjectClassDefinition;
import com.liferay.portal.kernel.settings.LocalizedValuesMap;
/**
* @author Tomas Polesovsky
* @author Marta Medio
*/
@ExtendedObjectClassDefinition(
category = "multi-factor-authentication",
scope = ExtendedObjectClassDefinition.Scope.COMPANY, strictScope = true
)
@Meta.OCD(
id = "com.liferay.multi.factor.authentication.email.otp.configuration.MFAEmailOTPConfiguration",
localization = "content/Language", name = "mfa-email-otp-configuration-name"
)
public interface MFAEmailOTPConfiguration {
@Meta.AD(
deflt = "false", description = "mfa-email-otp-enabled-description",
name = "enabled", required = false
)
public boolean enabled();
@Meta.AD(
deflt = "10", description = "order-description", id = "service.ranking",
name = "order", required = false
)
public int order();
@Meta.AD(
deflt = "6", description = "otp-size-description", name = "otp-size",
required = false
)
public int otpSize();
@Meta.AD(
deflt = "30", description = "resend-email-timeout-description",
name = "resend-email-timeout", required = false
)
public long resendEmailTimeout();
@Meta.AD(
deflt = "${server-property://com.liferay.portal/admin.email.from.address}",
description = "set-the-sender-address-on-the-one-time-password-email",
name = "email-from-field[template]", required = false
)
public String emailFromAddress();
@Meta.AD(
deflt = "${server-property://com.liferay.portal/admin.email.from.name}",
name = "email-from-name", required = false
)
public String emailFromName();
@Meta.AD(
deflt = "${resource:com/liferay/multi/factor/authentication/email/otp/configuration/dependencies/email_otp_sent_subject.tmpl}",
name = "email-otp-sent-subject", required = false
)
public LocalizedValuesMap emailOTPSentSubject();
@Meta.AD(
deflt = "${resource:com/liferay/multi/factor/authentication/email/otp/configuration/dependencies/email_otp_sent_body.tmpl}",
name = "email-otp-sent-body", required = false
)
public LocalizedValuesMap emailOTPSentBody();
@Meta.AD(
deflt = "-1", description = "failed-attempts-allowed-description",
name = "failed-attempts-allowed", required = false
)
public int failedAttemptsAllowed();
@Meta.AD(
deflt = "-1", description = "retry-timeout-description",
name = "retry-timeout", required = false
)
public long retryTimeout();
}