public class ApiKeySecurityManager extends org.apache.shiro.mgt.DefaultSecurityManager implements EmoSecurityManager
| Constructor and Description |
|---|
ApiKeySecurityManager(ApiKeyRealm realm) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.shiro.subject.SubjectContext |
createSubjectContext()
Required to by-pass a Shiro issue caused by not binding the SecurityManager globally.
|
boolean |
hasPermissionByInternalId(String internalId,
org.apache.shiro.authz.Permission permission) |
boolean |
hasPermissionByInternalId(String internalId,
String permission) |
boolean |
hasPermissionsByInternalId(String internalId,
org.apache.shiro.authz.Permission... permissions) |
boolean |
hasPermissionsByInternalId(String internalId,
String... permissions) |
beforeLogout, bind, copy, createSessionContext, createSubject, createSubject, delete, doCreateSubject, ensureSecurityManager, getRememberedIdentity, getRememberMeManager, getSessionKey, getSubjectDAO, getSubjectFactory, login, logout, onFailedLogin, onSuccessfulLogin, rememberMeFailedLogin, rememberMeLogout, rememberMeSuccessfulLogin, resolveContextSession, resolvePrincipals, resolveSession, save, setRememberMeManager, setSubjectDAO, setSubjectFactory, stopSession, unbindafterCacheManagerSet, afterSessionManagerSet, applyCacheManagerToSessionManager, destroy, getSession, getSessionManager, setSessionManager, startafterRealmsSet, checkPermission, checkPermission, checkPermissions, checkPermissions, checkRole, checkRoles, checkRoles, getAuthorizer, hasAllRoles, hasRole, hasRoles, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, setAuthorizerauthenticate, getAuthenticator, setAuthenticatorapplyCacheManagerToRealms, getRealms, setRealm, setRealmsgetCacheManager, setCacheManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ApiKeySecurityManager(ApiKeyRealm realm)
protected org.apache.shiro.subject.SubjectContext createSubjectContext()
createSubjectContext in class org.apache.shiro.mgt.DefaultSecurityManagerpublic boolean hasPermissionByInternalId(String internalId, String permission)
hasPermissionByInternalId in interface InternalAuthorizerpublic boolean hasPermissionByInternalId(String internalId, org.apache.shiro.authz.Permission permission)
hasPermissionByInternalId in interface InternalAuthorizerpublic boolean hasPermissionsByInternalId(String internalId, String... permissions)
hasPermissionsByInternalId in interface InternalAuthorizerpublic boolean hasPermissionsByInternalId(String internalId, org.apache.shiro.authz.Permission... permissions)
hasPermissionsByInternalId in interface InternalAuthorizerCopyright © 2017. All Rights Reserved.