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

org.ligoj.app.iam.IamProvider Maven / Gradle / Ivy

There is a newer version: 4.1.10
Show newest version
/*
 * Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
 */
package org.ligoj.app.iam;

import org.springframework.security.core.Authentication;

/**
 * Identity and Access Management (IAM) provider of the application.
 */
public interface IamProvider {

	/**
	 * Authenticate the given token.
	 *
	 * @param authentication The current authentication to check.
	 * @return The validated authentication. May not be the original parameter. Never null.
	 */
	Authentication authenticate(Authentication authentication);

	/**
	 * IAM global configuration.
	 *
	 * @return IAM global configuration. Never null and must handle default to empty provider.
	 */
	IamConfiguration getConfiguration();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy