public class SecurityManagerBuilder
extends java.lang.Object
SecurityManager which can be used for performing authentication and authorization.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
_anonymousId |
protected AuthIdentityReader<ApiKey> |
_authIdentityReader |
protected org.apache.shiro.cache.CacheManager |
_cacheManager |
protected PermissionReader |
_permissionReader |
protected java.lang.String |
_realmName |
| Constructor and Description |
|---|
SecurityManagerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
EmoSecurityManager |
build() |
static SecurityManagerBuilder |
create()
Starts a new configuration builder.
|
SecurityManagerBuilder |
withAnonymousAccessAs(java.lang.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(java.lang.String realmName) |
protected java.lang.String _realmName
protected AuthIdentityReader<ApiKey> _authIdentityReader
protected PermissionReader _permissionReader
protected java.lang.String _anonymousId
protected org.apache.shiro.cache.CacheManager _cacheManager
public static SecurityManagerBuilder create()
public SecurityManagerBuilder withRealmName(java.lang.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 java.lang.String id)
public EmoSecurityManager build()
Copyright © 2021. All Rights Reserved.