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

net.databinder.auth.IAuthSettings Maven / Gradle / Ivy

The newest version!
package net.databinder.auth;

import wicket.markup.html.WebPage;
import net.databinder.auth.data.IUser;
import net.databinder.models.ICriteriaBuilder;

/**
 * Application-specific authorization settings. Many components of Databinder authentication
 * require that this be implemented by the current WebApplication instance.
 * @author Nathan Hamblen
 */
public interface IAuthSettings {
	/**
	 * @return class to be used for signed in users
	 */
	public Class< ? extends IUser> getUserClass();
	/** 
	 * @return criteria builder that will match a single IUser for the given username. 
	 */
	public ICriteriaBuilder getUserCriteriaBuilder(String username);
	/**
	 * @return page to sign in users
	 */
	public Class< ? extends WebPage> getSignInPageClass();
	/**
	 * Cryptographic salt to be used in authentication. The default IUser
	 * implementation uses this value. If your imlementation does not require
	 * a salt value (!), return null.
	 * @return
	 */
	public abstract byte[] getSalt();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy