public class CredentialEditor extends PropertyEditorSupport
This editor will parses a full MongoDB URI to extract the specified
Credential. See the Connection String URI Format documentation for information on
constructing a MongoDB URI.
| Modifier and Type | Field and Description |
|---|---|
protected static Log |
LOG
The logger for the
CredentialEditor. |
static Set<String> |
MONGODB_URI_FIELDS
The fields parsed out of a MongoDB URI to construct a
Credential. |
| Constructor and Description |
|---|
CredentialEditor()
Creates a new CredentialEditor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setAsText(String credentialString) |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic static final Set<String> MONGODB_URI_FIELDS
Credential.protected static final Log LOG
CredentialEditor.public void setAsText(String credentialString) throws IllegalArgumentException
Overridden to parse a string to a Credential.
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentException - If the string cannot be parsed into a Credential.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.