public class ExtendedPropertiesRealm extends org.apache.shiro.realm.text.PropertiesRealm
PropertiesRealm
Constructor and Description |
---|
ExtendedPropertiesRealm(String resourcePath) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterCacheManagerSet()
Remove initialization after installing cacheManager.
|
protected org.apache.shiro.authc.AuthenticationInfo |
doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
Eliminates the error generating NullPointerException,
when trying to register for non-existent account.
|
void |
setCacheManager(org.apache.shiro.cache.CacheManager authzInfoCacheManager) |
afterRoleCacheSet, destroy, getName, getRolename, getUsername, isRolename, isUsername, onInit, run, setReloadIntervalSeconds, setResourcePath, setUseXmlFormat, startReloadThread
getRoleDefinitions, getUserDefinitions, processDefinitions, processRoleDefinitions, processRoleDefinitions, processUserDefinitions, processUserDefinitions, setRoleDefinitions, setUserDefinitions, toLines, toMap
accountExists, add, add, addAccount, addAccount, addRole, doGetAuthorizationInfo, getRole, getUser, getUsername, getUsername, roleExists, toSet
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, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolver
assertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supports
clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCachingEnabled
public ExtendedPropertiesRealm(String resourcePath)
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.SimpleAccountRealm
org.apache.shiro.authc.AuthenticationException
SimpleAccountRealm.doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken)
public void setCacheManager(org.apache.shiro.cache.CacheManager authzInfoCacheManager)
setCacheManager
in interface org.apache.shiro.cache.CacheManagerAware
setCacheManager
in class org.apache.shiro.realm.CachingRealm
protected void afterCacheManagerSet()
afterCacheManagerSet
in class org.apache.shiro.realm.AuthorizingRealm
AuthorizingRealm.afterCacheManagerSet()
Copyright © 2004–2015. All rights reserved.