public abstract class AbstractAuthorizingRealm
extends org.apache.shiro.realm.AuthorizingRealm
Modifier and Type | Field and Description |
---|---|
protected Map<org.osgi.framework.ServiceReference,Expansion> |
metacardExpansionServices |
protected Map<org.osgi.framework.ServiceReference,Expansion> |
userExpansionServices |
Constructor and Description |
---|
AbstractAuthorizingRealm() |
Modifier and Type | Method and Description |
---|---|
void |
addMetacardExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef) |
void |
addMetacardExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef,
Expansion expansion) |
void |
addUserExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef) |
void |
addUserExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef,
Expansion expansion) |
protected org.apache.shiro.authz.AuthorizationInfo |
doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principalCollection)
Takes the security attributes about the subject of the incoming security token and builds sets
of permissions and roles for use in further checking.
|
protected List<org.apache.shiro.authz.Permission> |
expandPermissions(List<org.apache.shiro.authz.Permission> permissions) |
void |
removeMetacardExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef) |
void |
removeUserExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef) |
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, setRolePermissionResolver
assertCredentialsMatch, clearCachedAuthenticationInfo, doGetAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supports
clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled
protected Map<org.osgi.framework.ServiceReference,Expansion> userExpansionServices
public void addUserExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef)
public void addUserExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef, Expansion expansion)
public void removeUserExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef)
public void addMetacardExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef)
public void addMetacardExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef, Expansion expansion)
public void removeMetacardExpansion(org.osgi.framework.ServiceReference<Expansion> expansionServiceRef)
protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principalCollection)
doGetAuthorizationInfo
in class org.apache.shiro.realm.AuthorizingRealm
principalCollection
- holds the security assertions for the primary principal of this
requestorg.apache.shiro.authz.AuthorizationException
- if there are no security assertions associated with this
principal collection or if the token cannot be processed successfully.This work is licensed under a Creative Commons Attribution 4.0 International License.