整合Shiro
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.wuyiqi.netstateproc.config;
|
||||
|
||||
import org.apache.shiro.authc.AuthenticationException;
|
||||
import org.apache.shiro.authc.AuthenticationInfo;
|
||||
import org.apache.shiro.authc.AuthenticationToken;
|
||||
import org.apache.shiro.realm.Realm;
|
||||
|
||||
public class NetStateRealm implements Realm {
|
||||
@Override
|
||||
public String getName() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supports(AuthenticationToken token) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AuthenticationInfo getAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user