|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shiro.realm.CachingRealm
org.apache.shiro.realm.AuthenticatingRealm
org.apache.shiro.realm.AuthorizingRealm
org.apache.shiro.realm.SimpleAccountRealm
org.apache.shiro.realm.text.TextConfigurationRealm
org.apache.shiro.realm.text.PropertiesRealm
org.tynamo.shiro.extension.realm.text.ExtendedPropertiesRealm
public class ExtendedPropertiesRealm
Fixes some bugs with PropertiesRealm
| Field Summary |
|---|
| Fields inherited from class org.apache.shiro.realm.text.PropertiesRealm |
|---|
fileLastModified, reloadIntervalSeconds, resourcePath, scheduler, useXmlFormat |
| Fields inherited from class org.apache.shiro.realm.SimpleAccountRealm |
|---|
roles, users |
| Constructor Summary | |
|---|---|
ExtendedPropertiesRealm(String resourcePath)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.shiro.realm.text.PropertiesRealm |
|---|
afterRoleCacheSet, destroy, getName, getRolename, getUsername, isRolename, isUsername, onInit, run, setReloadIntervalSeconds, setResourcePath, setUseXmlFormat, startReloadThread |
| Methods inherited from class org.apache.shiro.realm.text.TextConfigurationRealm |
|---|
getRoleDefinitions, getUserDefinitions, processDefinitions, processRoleDefinitions, processRoleDefinitions, processUserDefinitions, processUserDefinitions, setRoleDefinitions, setUserDefinitions, toLines, toMap |
| Methods inherited from class org.apache.shiro.realm.SimpleAccountRealm |
|---|
accountExists, add, add, addAccount, addAccount, addRole, doGetAuthorizationInfo, getRole, getUser, getUsername, getUsername, roleExists, toSet |
| Methods inherited from class org.apache.shiro.realm.AuthorizingRealm |
|---|
checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, getAuthorizationCache, getAuthorizationCacheKey, getAuthorizationCacheName, getAuthorizationInfo, getAvailablePrincipal, getPermissionResolver, getRolePermissionResolver, hasAllRoles, hasRole, hasRole, hasRoles, hasRoles, init, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isPermittedAll, onLogout, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolver |
| Methods inherited from class org.apache.shiro.realm.AuthenticatingRealm |
|---|
getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, setAuthenticationTokenClass, setCredentialsMatcher, supports |
| Methods inherited from class org.apache.shiro.realm.CachingRealm |
|---|
getCacheManager, getName, isCachingEnabled, setCachingEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedPropertiesRealm(String resourcePath)
| Method Detail |
|---|
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.SimpleAccountRealmorg.apache.shiro.authc.AuthenticationExceptionSimpleAccountRealm.doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken)public void setCacheManager(org.apache.shiro.cache.CacheManager authzInfoCacheManager)
setCacheManager in interface org.apache.shiro.cache.CacheManagerAwaresetCacheManager in class org.apache.shiro.realm.CachingRealmprotected void afterCacheManagerSet()
afterCacheManagerSet in class org.apache.shiro.realm.AuthorizingRealmAuthorizingRealm.afterCacheManagerSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||