public interface CredentialsComponent
Modifier and Type | Method and Description |
---|---|
void |
addSettingsChangedListener(java.lang.Runnable runnable)
Add listeners to be triggered when fields state change
|
default java.util.List<<any>> |
getAliases()
Provide pair(s) of legacy name and current name for this credentials element
if there are any.
|
java.awt.Container |
getCompoundComponent()
Returns the component itself.
|
java.util.Map<java.lang.String,CredentialsSerializationField> |
getValues()
gets values for
CredentialsComponent elements. |
void |
setValues(java.util.Map<java.lang.String,CredentialsSerializationField> values)
sets values for
CredentialsComponent elements while
restoring saved values. |
java.awt.Container getCompoundComponent()
CredentialsComponent
will contain one or
more elements like a JTextField
or a JComboBox
and optionally a JLabel
or anything elsevoid addSettingsChangedListener(java.lang.Runnable runnable)
java.util.Map<java.lang.String,CredentialsSerializationField> getValues()
CredentialsComponent
elements.
Keys are names for CredentialsComponent
elements.
While logging in, an adapter will get a ExtendedLoginData
object which will contain this map (values may be updated by the user)void setValues(java.util.Map<java.lang.String,CredentialsSerializationField> values)
CredentialsComponent
elements while
restoring saved values.default java.util.List<<any>> 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