Package com.caplin.console.credentials
Interface CustomConsoleCredentialsProvider
- All Superinterfaces:
ConsoleCredentialsProvider
Provides credentials that will be used to log in to a Caplin product's JMX server and access a console. Instances of this class
are configured by a name-value pair map, leaving the implementor free to define any number of such mappings to configure
an instance.
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends com.caplin.console.credentials.editor.CredentialsEditor>Returns theClassthat should be used for editing this type of credentials provider.Saves thisCustomConsoleCredentialsProviderto the returnedMap.voidsetProperties(Map<String, String> properties) Loads thisCustomConsoleCredentialsProviderwith the values in the parameterMap.Methods inherited from interface com.caplin.console.credentials.ConsoleCredentialsProvider
getCredentials, init
-
Method Details
-
getProperties
Saves thisCustomConsoleCredentialsProviderto the returnedMap. TheMapwill be saved to persistent storage so that is may be restored at configuration time, when the application is started up.- Returns:
- a map of attributes, that will be saved to persistent storage, that contains the variables used by this
CustomConsoleCredentialsProviderinstance.
-
setProperties
Loads thisCustomConsoleCredentialsProviderwith the values in the parameterMap. This method is called at configuration time to restore an exisingCustomConsoleCredentialsProvider- Parameters:
properties- A map of attributes, retrieved from persistent storage, that contain the variables used by thisCustomConsoleCredentialsProviderinstance.
-
getEditorClass
Class<? extends com.caplin.console.credentials.editor.CredentialsEditor> getEditorClass()Returns theClassthat should be used for editing this type of credentials provider. The class must implement theCredentialsEditorinterface and have a zero-argument constructor.- Returns:
- the class that should be used to edit the conscrete
CustomConsoleCredentialsProvidertype.
-