public class ShiroAuthRealmBase extends Object implements ShiroAuthRealm
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.shiro.realm.Realm |
realm |
protected org.apache.shiro.mgt.DefaultSecurityManager |
securityManager |
| Modifier | Constructor and Description |
|---|---|
protected |
ShiroAuthRealmBase() |
|
ShiroAuthRealmBase(org.apache.shiro.realm.Realm realm) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPermission(JsonObject principal,
String permission) |
boolean |
hasRole(JsonObject principal,
String role) |
void |
login(JsonObject principal,
JsonObject credentials) |
protected org.apache.shiro.mgt.DefaultSecurityManager securityManager
protected org.apache.shiro.realm.Realm realm
protected ShiroAuthRealmBase()
public ShiroAuthRealmBase(org.apache.shiro.realm.Realm realm)
public void login(JsonObject principal, JsonObject credentials)
login in interface ShiroAuthRealmpublic boolean hasRole(JsonObject principal, String role)
hasRole in interface ShiroAuthRealmpublic boolean hasPermission(JsonObject principal, String permission)
hasPermission in interface ShiroAuthRealmCopyright © 2015. All Rights Reserved.