Class Realms
java.lang.Object
org.elasticsearch.xpack.security.authc.Realms
- All Implemented Interfaces:
Iterable<org.elasticsearch.xpack.core.security.authc.Realm>
public class Realms
extends Object
implements Iterable<org.elasticsearch.xpack.core.security.authc.Realm>
Serves as a realms registry (also responsible for ordering the realms appropriately)
-
Constructor Summary
ConstructorsConstructorDescriptionRealms(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.env.Environment env, Map<String, org.elasticsearch.xpack.core.security.authc.Realm.Factory> factories, org.elasticsearch.license.XPackLicenseState licenseState, org.elasticsearch.common.util.concurrent.ThreadContext threadContext, ReservedRealm reservedRealm) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.elasticsearch.xpack.core.security.authc.Realm>calculateLicensedRealms(org.elasticsearch.license.XPackLicenseState licenseStateSnapshot) List<org.elasticsearch.xpack.core.security.authc.Realm>List<org.elasticsearch.xpack.core.security.authc.Realm>Returns a list of realms that are configured, but are not permitted under the current license.protected voidhandleDisabledRealmDueToLicenseChange(org.elasticsearch.xpack.core.security.authc.Realm realm, org.elasticsearch.license.XPackLicenseState licenseStateSnapshot) protected List<org.elasticsearch.xpack.core.security.authc.Realm>initRealms(List<org.elasticsearch.xpack.core.security.authc.RealmConfig> realmConfigs) static booleanisRealmTypeAvailable(org.elasticsearch.license.XPackLicenseState licenseState, String type) Iterator<org.elasticsearch.xpack.core.security.authc.Realm>iterator()org.elasticsearch.xpack.core.security.authc.Realmorg.elasticsearch.xpack.core.security.authc.Realm.FactoryrealmFactory(String type) protected voidStream<org.elasticsearch.xpack.core.security.authc.Realm>stream()voidusageStats(org.elasticsearch.action.ActionListener<Map<String, Object>> listener) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Realms
public Realms(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.env.Environment env, Map<String, org.elasticsearch.xpack.core.security.authc.Realm.Factory> factories, org.elasticsearch.license.XPackLicenseState licenseState, org.elasticsearch.common.util.concurrent.ThreadContext threadContext, ReservedRealm reservedRealm) throws Exception- Throws:
Exception
-
-
Method Details
-
recomputeActiveRealms
protected void recomputeActiveRealms() -
handleDisabledRealmDueToLicenseChange
protected void handleDisabledRealmDueToLicenseChange(org.elasticsearch.xpack.core.security.authc.Realm realm, org.elasticsearch.license.XPackLicenseState licenseStateSnapshot) -
iterator
-
getUnlicensedRealms
Returns a list of realms that are configured, but are not permitted under the current license. -
stream
-
getActiveRealms
-
calculateLicensedRealms
protected List<org.elasticsearch.xpack.core.security.authc.Realm> calculateLicensedRealms(org.elasticsearch.license.XPackLicenseState licenseStateSnapshot) -
isRealmTypeAvailable
public static boolean isRealmTypeAvailable(org.elasticsearch.license.XPackLicenseState licenseState, String type) -
realm
-
realmFactory
-
initRealms
protected List<org.elasticsearch.xpack.core.security.authc.Realm> initRealms(List<org.elasticsearch.xpack.core.security.authc.RealmConfig> realmConfigs) throws Exception - Throws:
Exception
-
usageStats
-