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

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

package cn.ocoop.shiro.authc.realm.resolves;

import cn.ocoop.shiro.AutoDetectedToken;
import cn.ocoop.shiro.authc.realm.resolves.delegate.AutoDetectedSubjectResolveAware;
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 2016/12/6.
 */
@Service
public class AutoDetectedSubjectResolve extends SubjectResolve {

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy