![JAR search and dependency download from the Maven repository](/logo.png)
io.imunity.vaadin.auth.extensions.PasswordRetrievalProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-vaadin-authentication Show documentation
Show all versions of unity-server-vaadin-authentication Show documentation
Vaadin login view and components
/*
* Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.vaadin.auth.extensions;
import eu.unicore.util.configuration.DocumentationReferenceMeta;
import eu.unicore.util.configuration.DocumentationReferencePrefix;
import eu.unicore.util.configuration.PropertyMD;
import org.apache.logging.log4j.Logger;
import pl.edu.icm.unity.base.utils.Log;
import pl.edu.icm.unity.engine.api.config.UnityPropertiesHelper;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
public class PasswordRetrievalProperties extends UnityPropertiesHelper
{
private static final Logger log = Log.getLogger(Log.U_SERVER_CFG, PasswordRetrievalProperties.class);
@DocumentationReferencePrefix
public static final String P = "retrieval.password.";
@DocumentationReferenceMeta
public final static Map defaults = new HashMap<>();
public static final String NAME = "name";
public static final String REGISTRATION_FORM_FOR_UNKNOWN = "registrationFormForUnknown";
public static final String ENABLE_ASSOCIATION = "enableAssociation";
static
{
defaults.put(NAME, new PropertyMD().setCanHaveSubkeys()
.setDescription("Label to be used on UI for this option. "
+ "Can have multiple language variants defined with subkeys."));
defaults.put(REGISTRATION_FORM_FOR_UNKNOWN, new PropertyMD()
.setDescription("(Only used for remote password verification) Registration form "
+ "to be presented for unknown locally users who "
+ "were correctly authenticated remotely."));
defaults.put(ENABLE_ASSOCIATION, new PropertyMD("false")
.setDescription("(Only used for remote password verification) Whether to present "
+ "account association option for unknown locally users who "
+ "were correctly authenticated remotely."));
}
public PasswordRetrievalProperties(Properties properties)
{
super(P, properties, defaults, log);
}
Properties getProperties()
{
return properties;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy