IniSecurityManagerFactory

A {@link Factory} that creates {@link SecurityManager} instances based on {@link Ini} configuration.

@since 1.0 deprecated("") use Shiro's {@code Environment} mechanisms instead.

Constructors

this
this()

Creates a new instance. See the {@link #getInstance()} JavaDoc for detailed explanation of how an INI source will be resolved to use to build the instance.

this
this(Ini config)
Undocumented in source.
this
this(string iniResourcePath)
Undocumented in source.

Members

Functions

applyRealmsToSecurityManager
void applyRealmsToSecurityManager(Realm[] realms, SecurityManager securityManager)
Undocumented in source. Be warned that the author may not have intended to support it.
createDefaultInstance
SecurityManager createDefaultInstance()
Undocumented in source. Be warned that the author may not have intended to support it.
createDefaults
Map!(string, Object) createDefaults(Ini ini, IniSection mainSection)
Undocumented in source. Be warned that the author may not have intended to support it.
createInstance
SecurityManager createInstance(Ini ini)
Undocumented in source. Be warned that the author may not have intended to support it.
createRealm
Realm createRealm(Ini ini)

Creates a {@code Realm} from the Ini instance containing account data.

destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
getReflectionBuilder
ReflectionBuilder getReflectionBuilder()

Returns the ReflectionBuilder instance used to create SecurityManagers object graph. @return ReflectionBuilder instance used to create SecurityManagers object graph. @since 1.4

isAutoApplyRealms
bool isAutoApplyRealms(SecurityManager securityManager)
Undocumented in source. Be warned that the author may not have intended to support it.
setReflectionBuilder
void setReflectionBuilder(ReflectionBuilder builder)

Sets the ReflectionBuilder that will be used to create the SecurityManager based on the contents of the Ini configuration. @param builder The ReflectionBuilder used to parse the Ini configuration. @since 1.4

shouldImplicitlyCreateRealm
bool shouldImplicitlyCreateRealm(Ini ini)

Returns {@code true} if the Ini contains account data and a {@code Realm} should be implicitly {@link #createRealm(Ini) created} to reflect the account data, {@code false} if no realm should be implicitly created.

Variables

INI_REALM_NAME
enum string INI_REALM_NAME;
Undocumented in source.
MAIN_SECTION_NAME
enum string MAIN_SECTION_NAME;
Undocumented in source.
SECURITY_MANAGER_NAME
enum string SECURITY_MANAGER_NAME;
Undocumented in source.

Meta