pl.edu.icm.unity.stdext.credential.pass.EmailPasswordResetTemplateDef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-std-plugins Show documentation
Show all versions of unity-server-std-plugins Show documentation
Standard plugins which are distributed with the system:
attribute syntaxes, identity types, credentials
/*
* Copyright (c) 2018 Bixbit - Krzysztof Benedyczak All rights reserved.
* See LICENCE file for licensing information.
*/
package pl.edu.icm.unity.stdext.credential.pass;
import java.util.EnumSet;
import org.springframework.stereotype.Component;
import pl.edu.icm.unity.base.msgtemplates.MessageTemplateDefinition;
import pl.edu.icm.unity.base.notifications.CommunicationTechnology;
/**
* Defines template used for sending password reset confirmation code by email.
* @author P. Piernik
*
*/
@Component
public class EmailPasswordResetTemplateDef extends PasswordResetTemplateDefBase implements MessageTemplateDefinition
{
public static final String NAME = "EmailPasswordResetCode";
@Override
public String getDescriptionKey()
{
return "MessageTemplateConsumer.EmailPasswordReset.desc";
}
@Override
public String getName()
{
return NAME;
}
@Override
public EnumSet getCompatibleTechnologies()
{
return EnumSet.of(CommunicationTechnology.EMAIL);
}
}