@Metadata(root=CONFIGURATION, description="A LookupValueProvider that stores values in the database.") public class SimpleLookupValueProvider extends BaseConfigurationItem implements LookupValueProvider
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowEncryptedForNonPassword |
protected java.util.Map<java.lang.String,java.lang.String> |
encryptedEntries |
protected java.util.Map<java.lang.String,java.lang.String> |
entries |
id, syntheticProperties, typeSYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD| Constructor and Description |
|---|
SimpleLookupValueProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
lookup(java.lang.String key,
boolean password)
Lookup an external value by key.
|
compareTo, equals, get$ciAttributes, get$externalProperties, get$internalId, get$securedCi, get$token, get$validationMessages, getId, getName, getProperty, getPropertyDescriptor, getType, hashCode, hasProperty, set$ciAttributes, set$externalProperties, set$internalId, set$securedCi, set$token, set$validationMessages, setId, setProperty, setType, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisHealthyget$internalId, get$securedCi, get$validationMessages, getId, getName, getProperty, getType, hasProperty, setId, setProperty@Property(description="The lookup value entries", required=false) protected java.util.Map<java.lang.String,java.lang.String> entries
@Property(description="The encrypted lookup value entries", required=false, password=true) protected java.util.Map<java.lang.String,java.lang.String> encryptedEntries
@Property(description="Allow encrypted entries for non password properties.", defaultValue="false") protected boolean allowEncryptedForNonPassword
public java.lang.String lookup(java.lang.String key,
boolean password)
throws java.lang.Exception
LookupValueProviderlookup in interface LookupValueProviderkey - The key to findpassword - Whether it is used for a password property.java.lang.Exception - when the lookup cannot be performed or the provider cannot provide a value, e.g. when a secret is requested for a non password field.