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

mtons.shiro.ShiroAuthcAdapter Maven / Gradle / Ivy

The newest version!
package mtons.shiro;

import mtons.pojos.UserProfile;

/**
 * Shiro 用户验证适配器
 * @author - langhsu on 2018/2/11
 */
public interface ShiroAuthcAdapter {
    /**
     * 用户登录接口
     * @see org.apache.shiro.authc.UsernamePasswordToken
     * @param username 用户名
     * @param password 密码
     * @return 当前用户信息
     */
    UserProfile login(String username, String password);

    /**
     * 获取用户信息
     * @param principal 用户名
     * @return
     */
    UserProfile getProfile(Object principal);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy