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 AuthIdentityReader<ApiKey> |
_authIdentityReader |
protected org.apache.shiro.cache.CacheManager |
_cacheManager |
protected PermissionReader |
_permissionReader |
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 |
withAuthIdentityReader(AuthIdentityReader<ApiKey> authIdentityReader) |
SecurityManagerBuilder |
withCacheManager(org.apache.shiro.cache.CacheManager cacheManager) |
SecurityManagerBuilder |
withPermissionReader(PermissionReader permissionReader) |
SecurityManagerBuilder |
withRealmName(String realmName) |
protected String _realmName
protected AuthIdentityReader<ApiKey> _authIdentityReader
protected PermissionReader _permissionReader
protected String _anonymousId
protected org.apache.shiro.cache.CacheManager _cacheManager
public static SecurityManagerBuilder create()
public SecurityManagerBuilder withRealmName(String realmName)
public SecurityManagerBuilder withAuthIdentityReader(AuthIdentityReader<ApiKey> authIdentityReader)
public SecurityManagerBuilder withPermissionReader(PermissionReader permissionReader)
public SecurityManagerBuilder withCacheManager(org.apache.shiro.cache.CacheManager cacheManager)
public SecurityManagerBuilder withAnonymousAccessAs(@Nullable String id)
public EmoSecurityManager build()
Copyright © 2017. All Rights Reserved.