Class HashiCorpVaultLookupFunction

java.lang.Object
org.wso2.carbon.mediation.security.vault.external.hashicorp.HashiCorpVaultLookupFunction
All Implemented Interfaces:
org.jaxen.Function

public class HashiCorpVaultLookupFunction extends Object implements org.jaxen.Function
Implements the XPath extension function hashicorp:vault-lookup(alias).
  • Constructor Details

    • HashiCorpVaultLookupFunction

      public HashiCorpVaultLookupFunction(org.apache.synapse.MessageContext synCtx)
  • Method Details

    • call

      public Object call(org.jaxen.Context context, List args) throws org.jaxen.FunctionCallException
      Returns the string value of the property which is get from the corresponding context to the provided scope. vault-lookup('xxx')
      Specified by:
      call in interface org.jaxen.Function
      Parameters:
      context - the context at the point in the expression when the function is called
      args - arguments of the functions
      Returns:
      The string value of a property
      Throws:
      org.jaxen.FunctionCallException - throws FunctionCallException when error occurs