Interface CredentialsComponent
- All Known Implementing Classes:
BaseCredentialsComponent,CredentialsCheckbox,CredentialsDropdown,CredentialsTextField,MultiCredentialsComponent
public interface CredentialsComponent
An instance of a class implementing this interface is
used as a connection configuration item.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSettingsChangedListener(Runnable runnable) Add listeners to be triggered when fields state change Listener must be added to all entities that implement the parts of the credential component in order to notify UI about changes in any of themProvide pair(s) of legacy name and current name for this credentials element if there are any.Returns the component itself.gets values forCredentialsComponentelements.voidsetValues(Map<String, CredentialsSerializationField> values) sets values forCredentialsComponentelements while restoring saved values.
-
Method Details
-
getCompoundComponent
Container getCompoundComponent()Returns the component itself. Compound here means that a typicalCredentialsComponentwill contain one or more elements like aJTextFieldor aJComboBoxand optionally aJLabelor anything else -
addSettingsChangedListener
Add listeners to be triggered when fields state change Listener must be added to all entities that implement the parts of the credential component in order to notify UI about changes in any of them -
getValues
Map<String,CredentialsSerializationField> getValues()gets values forCredentialsComponentelements. Keys are names forCredentialsComponentelements. While logging in, an adapter will get aExtendedLoginDataobject which will contain this map (values may be updated by the user) -
setValues
sets values forCredentialsComponentelements while restoring saved values. -
getAliases
Provide pair(s) of legacy name and current name for this credentials element if there are any. Used for compatibility with an older credentials element names. If "current name" (second element in a pair) does not have a corresponding value stored in the settings yet, value will be taken from "legacy name". There might be multiple pairs mapping to the same "current name", in which case only the first matched one will have effect.
If an adapter is switched to extended credentials for the first time common old names for login, password and demo check box are found in
CredentialsComponentUtil
-