public class HippoRepositoryRealm
extends org.apache.shiro.realm.AuthorizingRealm
This realm supports caching by extending from AuthorizingRealm.
| Constructor and Description |
|---|
HippoRepositoryRealm() |
| Modifier and Type | Method and Description |
|---|---|
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) |
String |
getDefaultPermission() |
String |
getDefaultRoleName() |
String |
getGroupsOfUserQuery() |
protected Set<String> |
getPermissions(String username,
Set<String> roleNames) |
String |
getQueryLanguage() |
protected Set<String> |
getRoleNames(String username) |
String |
getRolePrefix() |
String |
getRolesOfUserAndGroupQuery() |
javax.jcr.Credentials |
getSystemCredentials() |
javax.jcr.Repository |
getSystemRepository() |
String |
getUserQuery() |
boolean |
isPermissionsLookupEnabled() |
void |
setDefaultPermission(String defaultPermission) |
void |
setDefaultRoleName(String defaultRoleName) |
void |
setGroupsOfUserQuery(String groupsOfUserQuery) |
void |
setPermissionsLookupEnabled(boolean permissionsLookupEnabled) |
void |
setQueryLanguage(String queryLanguage) |
void |
setRolePrefix(String rolePrefix) |
void |
setRolesOfUserAndGroupQuery(String rolesOfUserAndGroupQuery) |
void |
setSystemCredentials(javax.jcr.Credentials systemCreds) |
void |
setSystemRepository(javax.jcr.Repository systemRepository) |
void |
setUserQuery(String userQuery) |
afterCacheManagerSet, checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, doClearCache, getAuthorizationCache, getAuthorizationCacheKey, getAuthorizationCacheName, getAuthorizationInfo, getPermissionResolver, getPermissions, getRolePermissionResolver, hasAllRoles, hasRole, hasRole, hasRoles, hasRoles, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isPermittedAll, onInit, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolverassertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supportsclearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabledpublic void setSystemRepository(javax.jcr.Repository systemRepository)
public javax.jcr.Repository getSystemRepository()
public void setSystemCredentials(javax.jcr.Credentials systemCreds)
public javax.jcr.Credentials getSystemCredentials()
public void setQueryLanguage(String queryLanguage)
public String getQueryLanguage()
public String getUserQuery()
public void setUserQuery(String userQuery)
public void setGroupsOfUserQuery(String groupsOfUserQuery)
public String getGroupsOfUserQuery()
public void setRolesOfUserAndGroupQuery(String rolesOfUserAndGroupQuery)
public String getRolesOfUserAndGroupQuery()
public void setDefaultRoleName(String defaultRoleName)
public String getDefaultRoleName()
public String getRolePrefix()
public void setRolePrefix(String rolePrefix)
public boolean isPermissionsLookupEnabled()
public void setPermissionsLookupEnabled(boolean permissionsLookupEnabled)
public String getDefaultPermission()
public void setDefaultPermission(String defaultPermission)
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 Set<String> getRoleNames(String username) throws org.apache.shiro.authz.AuthorizationException
org.apache.shiro.authz.AuthorizationExceptionCopyright © 2018. All rights reserved.