public class SecurityManagerBuilder extends Object
SecurityManager which can be used for performing authentication and authorization.| Modifier and Type | Field and Description |
|---|---|
protected String |
_anonymousId |
protected AuthIdentityManager<ApiKey> |
_authIdentityManager |
protected org.apache.shiro.cache.CacheManager |
_cacheManager |
protected PermissionManager |
_permissionManager |
protected String |
_realmName |
| Constructor and Description |
|---|
SecurityManagerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
EmoSecurityManager |
build() |
static SecurityManagerBuilder |
create()
Starts a new configuration builder.
|
SecurityManagerBuilder |
withAnonymousAccessAs(String id)
If a request comes in with no authentication information at all (such as will no headers) then an ID
can be associated with these requests to provide controlled access to anonymous requests.
|
SecurityManagerBuilder |
withAuthIdentityManager(AuthIdentityManager<ApiKey> authIdentityManager) |
SecurityManagerBuilder |
withCacheManager(org.apache.shiro.cache.CacheManager cacheManager) |
SecurityManagerBuilder |
withPermissionManager(PermissionManager permissionManager) |
SecurityManagerBuilder |
withRealmName(String realmName) |
protected String _realmName
protected AuthIdentityManager<ApiKey> _authIdentityManager
protected PermissionManager _permissionManager
protected String _anonymousId
protected org.apache.shiro.cache.CacheManager _cacheManager
public static SecurityManagerBuilder create()
public SecurityManagerBuilder withRealmName(String realmName)
public SecurityManagerBuilder withAuthIdentityManager(AuthIdentityManager<ApiKey> authIdentityManager)
public SecurityManagerBuilder withPermissionManager(PermissionManager permissionManager)
public SecurityManagerBuilder withCacheManager(org.apache.shiro.cache.CacheManager cacheManager)
public SecurityManagerBuilder withAnonymousAccessAs(@Nullable String id)
public EmoSecurityManager build()
Copyright © 2016. All Rights Reserved.