pl.edu.icm.unity.stdext.credential.pass.PasswordExchange 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) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.stdext.credential.pass;
import pl.edu.icm.unity.engine.api.authn.AuthenticationException;
import pl.edu.icm.unity.engine.api.authn.AuthenticationResult;
import pl.edu.icm.unity.engine.api.authn.CredentialExchange;
import pl.edu.icm.unity.engine.api.authn.CredentialReset;
import pl.edu.icm.unity.engine.api.authn.remote.AuthenticationTriggeringContext;
/**
* Allows for exchanging a regular passphrase.
* @author K. Benedyczak
*/
public interface PasswordExchange extends CredentialExchange
{
public static final String ID = "password exchange";
/**
* Verifies the user provided credentials.
*/
public AuthenticationResult checkPassword(String username, String password,
String formForUnknown, boolean enableAssociation,
AuthenticationTriggeringContext triggeringContext) throws AuthenticationException;
/**
* @return credential reset backend
*/
public CredentialReset getCredentialResetBackend();
}