All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.edu.icm.unity.stdext.credential.NoCredentialResetImpl Maven / Gradle / Ivy

Go to download

Standard plugins which are distributed with the system: attribute syntaxes, identity types, credentials

There is a newer version: 4.0.2
Show newest version
/*
 * Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
 * See LICENCE.txt file for licensing information.
 */
package pl.edu.icm.unity.stdext.credential;

import com.fasterxml.jackson.databind.node.ObjectNode;

import pl.edu.icm.unity.base.Constants;
import pl.edu.icm.unity.base.exceptions.EngineException;
import pl.edu.icm.unity.base.exceptions.WrongArgumentException;
import pl.edu.icm.unity.base.identity.IllegalIdentityValueException;
import pl.edu.icm.unity.base.json.JsonUtil;
import pl.edu.icm.unity.engine.api.authn.AuthenticationSubject;
import pl.edu.icm.unity.engine.api.authn.CredentialReset;
import pl.edu.icm.unity.engine.api.authn.TooManyAttempts;
import pl.edu.icm.unity.stdext.credential.pass.PasswordCredentialResetSettings;

public class NoCredentialResetImpl implements CredentialReset
{
	private PasswordCredentialResetSettings settings;
	
	{
		settings = new PasswordCredentialResetSettings();
		settings.setEnabled(false);
	}
	@Override
	public String getSettings()
	{
		ObjectNode node = Constants.MAPPER.createObjectNode();
		settings.serializeTo(node);
		return JsonUtil.toJsonString(node);
	}

	@Override
	public void setSubject(AuthenticationSubject subject)
	{
	}

	@Override
	public String getSecurityQuestion()
	{
		return null;
	}

	@Override
	public void verifyStaticData(String aswer) throws WrongArgumentException,
			IllegalIdentityValueException, TooManyAttempts
	{
	}

	@Override
	public void verifyDynamicData(String emailCode) throws WrongArgumentException,
			TooManyAttempts
	{
	}

	@Override
	public void sendCode(String messageTemplate, boolean onlyNumberCode) throws EngineException
	{
	}

	@Override
	public String getCredentialConfiguration()
	{
		return null;
	}

	@Override
	public void updateCredential(String newCredential) throws EngineException
	{
	}

	@Override
	public Long getEntityId()
	{
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy