Registry of the built-in social login provider templates that seed the "add social login provider" admin UI. Registered as the Spring singleton bean oauth.providers in socialLoginProviders.xml, keyed by the provider's display name (for example "Facebook", "Google", "Twitter"). The underlying map is held in a static field, so its contents are shared across every instance of this class in the JVM. Implements Map by delegating every operation to that shared map.

Implements: Map


Properties

PropertyReturnsDescription
emptybooleanWhether the registry currently has no provider templates.

Methods

size() · isEmpty() · containsKey(Object key) · containsValue(Object value) · get(Object key) · put(String key, FederatedLoginProviderBean value) · remove(Object key) · putAll(Map<? extends String,? extends FederatedLoginProviderBean> m) · clear() · keySet() · values() · entrySet()

size()

Returns: int

Number of provider templates in the registry.

isEmpty()

Returns: boolean

Whether the registry currently has no provider templates.

containsKey(Object key)

Returns: boolean

Checks whether a provider template is registered under the given display name.

ParameterDescription
keythe display name to look up, for example "Facebook"

containsValue(Object value)

Returns: boolean

Checks whether the given provider bean is registered in the templates map under any name.

ParameterDescription
valuethe provider bean to look for

get(Object key)

Returns: FederatedLoginProviderBean

Looks up the provider template registered under the given display name.

ParameterDescription
keythe display name to look up, for example "Facebook"

put(String key, FederatedLoginProviderBean value)

Returns: FederatedLoginProviderBean

Registers a provider template under the given display name, replacing any existing template with that name. Since the backing map is static, this affects every instance of this class in the JVM.

ParameterDescription
keythe display name to register the template under
valuethe provider template to register

remove(Object key)

Returns: FederatedLoginProviderBean

Removes the provider template registered under the given display name, if any. Since the backing map is static, this affects every instance of this class in the JVM.

ParameterDescription
keythe display name of the template to remove

putAll(Map<? extends String,? extends FederatedLoginProviderBean> m)

Returns: void

Registers every entry from the given map of provider templates, replacing any existing templates with the same display name. Since the backing map is static, this affects every instance of this class in the JVM.

ParameterDescription
mthe provider templates to add, keyed by display name

clear()

Returns: void

Removes every provider template from the registry. Since the backing map is static, this affects every instance of this class in the JVM.

keySet()

Returns: Set<String>

Display names of every registered provider template, for example "Facebook" or "Twitter".

values()

Returns: Collection<FederatedLoginProviderBean>

Every registered provider template, in the order they were registered.

entrySet()

Returns: Set<Entry<String,FederatedLoginProviderBean>>

Every registered display name paired with its provider template.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.