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

cn.ocoop.shiro.authc.realm.resolves.UsernamePasswordSubjectResolve Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package cn.ocoop.shiro.authc.realm.resolves;

import cn.ocoop.shiro.authc.realm.resolves.delegate.UsernamePasswordResolveAware;
import cn.ocoop.shiro.subject.User;
import cn.ocoop.spring.App;
import org.apache.shiro.authc.AuthenticationToken;
import org.springframework.stereotype.Service;

/**
 * Created by liolay on 2017/3/7.
 */
@Service
public class UsernamePasswordSubjectResolve extends SubjectResolve {

    @Override
    public User findLoginUser(AuthenticationToken token) {
        return App.getBean(UsernamePasswordResolveAware.class).findLoginUser(token);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy