Class SimpleLookupValueProvider

    • Field Detail

      • entries

        @Property(description="The lookup value entries",
                  required=false)
        protected java.util.Map<java.lang.String,​java.lang.String> entries
      • encryptedEntries

        @Property(description="The encrypted lookup value entries",
                  required=false,
                  password=true)
        protected java.util.Map<java.lang.String,​java.lang.String> encryptedEntries
      • allowEncryptedForNonPassword

        @Property(description="Allow encrypted entries for non password properties.",
                  defaultValue="false")
        protected boolean allowEncryptedForNonPassword
    • Constructor Detail

      • SimpleLookupValueProvider

        public SimpleLookupValueProvider()
    • Method Detail

      • lookup

        public java.lang.String lookup​(java.lang.String key,
                                       boolean password)
                                throws java.lang.Exception
        Description copied from interface: LookupValueProvider
        Lookup an external value by key.
        Specified by:
        lookup in interface LookupValueProvider
        Parameters:
        key - The key to find
        password - Whether it is used for a password property.
        Returns:
        The value found
        Throws:
        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.