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

com.aluka.nirvana.framework.security.provider.AuthenticationValidProvider Maven / Gradle / Ivy

package com.aluka.nirvana.framework.security.provider;

import com.aluka.nirvana.framework.security.principal.BaseUserDetails;

/**
 * 权限验证拦截
 * @author gongli
 * @since 2020/4/10 17:30
 */
public interface AuthenticationValidProvider {

    /**
     * 验证当前用户是否拥有该路径的权限
     * @param url 访问路径
     * @param userDetails 用户信息
     * @return 是否有权限
     */
    boolean valid(BaseUserDetails userDetails, String url);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy