public class AppRealm
extends org.apache.shiro.realm.AuthorizingRealm
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ALGORITHM |
static int |
DEFAULT_ITERATIONS |
protected org.apache.shiro.crypto.hash.HashService |
hashService |
protected UserStore |
userstore |
| Constructor and Description |
|---|
AppRealm() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearCacheFor(String id)
Clear cached authentication and authorization information
for an individual.
|
protected org.apache.shiro.authc.AuthenticationInfo |
doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token) |
protected org.apache.shiro.authz.AuthorizationInfo |
doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals) |
protected Object |
getAuthenticationCacheKey(org.apache.shiro.subject.PrincipalCollection pc) |
org.apache.shiro.crypto.hash.HashService |
getHashService() |
static AppRealm |
getRealm() |
UserStore |
getUserStore() |
static String |
permissionAction(String permission)
Return the action part of a action:path permission structure
|
static String |
permissionPath(String permission)
Return the path part of a action:path permission structure
|
void |
setDiscoverUserStore(String storename)
Configure a user store by looking up its name in the set of configured components
|
void |
setHashIterations(int iterations)
Set the number of iterations that the hash service should use.
|
void |
setUserStore(UserStore store)
Configure the user store for this realm
|
static String[] |
splitPermission(String permission)
The string permission structure allows standard Shiro wildcard structures foo:bar:baz...
|
afterCacheManagerSet, checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, doClearCache, getAuthorizationCache, getAuthorizationCacheKey, getAuthorizationCacheName, getAuthorizationInfo, getPermissionResolver, getRolePermissionResolver, hasAllRoles, hasRole, hasRole, hasRoles, hasRoles, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isPermittedAll, onInit, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolverassertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supportsclearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabledpublic static final String DEFAULT_ALGORITHM
public static final int DEFAULT_ITERATIONS
protected org.apache.shiro.crypto.hash.HashService hashService
protected UserStore userstore
public static AppRealm getRealm()
public void setHashIterations(int iterations)
public void setDiscoverUserStore(String storename)
public void setUserStore(UserStore store)
public UserStore getUserStore()
public static String permissionPath(String permission)
public static String permissionAction(String permission)
public static String[] splitPermission(String permission)
public org.apache.shiro.crypto.hash.HashService getHashService()
protected void clearCacheFor(String id)
protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
throws org.apache.shiro.authc.AuthenticationException
doGetAuthenticationInfo in class org.apache.shiro.realm.AuthenticatingRealmorg.apache.shiro.authc.AuthenticationExceptionprotected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
doGetAuthorizationInfo in class org.apache.shiro.realm.AuthorizingRealmprotected Object getAuthenticationCacheKey(org.apache.shiro.subject.PrincipalCollection pc)
getAuthenticationCacheKey in class org.apache.shiro.realm.AuthenticatingRealmCopyright © 2015. All rights reserved.