com.payneteasy.superfly.security.validator.AuthenticationValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of superfly-spring-security Show documentation
Show all versions of superfly-spring-security Show documentation
Module for Spring Security which enables application to use Superfly authentication/authorization declaratively through Spring Security
The newest version!
package com.payneteasy.superfly.security.validator;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
/**
* Validates authentication.
*
* @author Roman Puchkovskiy
*/
public interface AuthenticationValidator {
/**
* Carries out authentication.
*
* @param auth auth to validate
* @throws AuthenticationException if validation fails
*/
void validate(Authentication auth) throws AuthenticationException;
}