public class OAuthRealm
extends org.apache.shiro.realm.AuthorizingRealm
| Constructor and Description |
|---|
OAuthRealm() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.shiro.authc.AuthenticationInfo |
doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken authenticationToken)
Authenticates a user and retrieves its user profile.
|
protected org.apache.shiro.authz.AuthorizationInfo |
doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
Retrieves the AuthorizationInfo for the given principals.
|
void |
setDefaultPermissions(String defaultPermissions) |
void |
setDefaultRoles(String defaultRoles) |
void |
setProvider(org.scribe.up.provider.OAuthProvider provider) |
void |
setProvidersDefinition(org.scribe.up.provider.ProvidersDefinition providersDefinition) |
protected List<String> |
split(String s)
Split a string into a list of not empty and trimmed strings, delimiter is a comma.
|
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, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supportsclearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabledprotected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken authenticationToken)
throws org.apache.shiro.authc.AuthenticationException
doGetAuthenticationInfo in class org.apache.shiro.realm.AuthenticatingRealmauthenticationToken - the authentication tokenorg.apache.shiro.authc.AuthenticationException - if there is an error during authentication.protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals)
doGetAuthorizationInfo in class org.apache.shiro.realm.AuthorizingRealmprincipals - the primary identifying principals of the AuthorizationInfo that should be retrieved.protected List<String> split(String s)
s - the input stringpublic void setProvider(org.scribe.up.provider.OAuthProvider provider)
public void setProvidersDefinition(org.scribe.up.provider.ProvidersDefinition providersDefinition)
public void setDefaultRoles(String defaultRoles)
public void setDefaultPermissions(String defaultPermissions)
Copyright © 2013. All Rights Reserved.