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

cn.ocoop.shiro.authc.realm.ApiAuthorizingRealm Maven / Gradle / Ivy

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

import cn.ocoop.shiro.ApiToken;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * Created by liolay on 2016/12/6.
 */
public class ApiAuthorizingRealm extends AbstractMobileAuthorizingRealm {

    @Override
    protected void assertCredentialsMatch(AuthenticationToken token, AuthenticationInfo info) throws AuthenticationException {
    }

    @Override
    public boolean supports(AuthenticationToken token) {
        return super.supports(token) && ApiToken.class.isAssignableFrom(token.getClass());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy