|
||||||||||
| 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
io.buji.oauth.OAuthRealm
public class OAuthRealm
This realm implementation is dedicated to OAuth authentication. It acts on OAuth credential after user authenticates at the OAuth provider (Facebook, Twitter...) and finishes the OAuth authentication process by getting the user profile from the OAuth provider.
| Constructor Summary | |
|---|---|
OAuthRealm()
|
|
| Method Summary | |
|---|---|
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)
|
protected List<String> |
split(String s)
Split a string into a list of not empty and trimmed strings, delimiter is a comma. |
| Methods inherited from class org.apache.shiro.realm.AuthorizingRealm |
|---|
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, setRolePermissionResolver |
| Methods inherited from class org.apache.shiro.realm.AuthenticatingRealm |
|---|
assertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supports |
| Methods inherited from class org.apache.shiro.realm.CachingRealm |
|---|
clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.shiro.util.Initializable |
|---|
init |
| Constructor Detail |
|---|
public OAuthRealm()
| Method Detail |
|---|
protected 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 token
org.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 string
public void setProvider(org.scribe.up.provider.OAuthProvider provider)
public void setDefaultRoles(String defaultRoles)
public void setDefaultPermissions(String defaultPermissions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||