Class EnableAuth.Request

    • Method Detail

      • auth

        public EnableAuth.Request auth​(AuthMethod<?> auth)
        Authentication method to enable. Custom path can be configured through path(String).
        Parameters:
        auth - authentication method to enable
        Returns:
        updated request
      • path

        public T path​(String path)
        Specifies the path where the engine/method will be mounted. If no path is defined, the engine/method default path will be used.
        Parameters:
        path - path to configure
        Returns:
        updated request
      • description

        public T description​(String description)
        Specifies the human-friendly description of the mount.
        Parameters:
        description - description
        Returns:
        updated request
      • defaultLeaseTtl

        public T defaultLeaseTtl​(Duration defaultLeaseTtl)
        Default lease duration.
        Parameters:
        defaultLeaseTtl - lease time to live
        Returns:
        updated request
      • maxLeaseTtl

        public T maxLeaseTtl​(Duration maxLeaseTtl)
        Maximum lease duration.
        Parameters:
        maxLeaseTtl - maximum lease time to live
        Returns:
        updated request
      • forceNoCache

        public T forceNoCache​(boolean forceNoCache)
        Disable caching.

        Defaults to false.

        Parameters:
        forceNoCache - whether to disable caching
        Returns:
        updated request
      • addPassThroughHeader

        public T addPassThroughHeader​(String passThroughHeader)
        Add header to whitelist and pass from the request to the plugin.
        Parameters:
        passThroughHeader - name of the header
        Returns:
        updated request
      • addAllowedResponseHeader

        public T addAllowedResponseHeader​(String allowedResponseHeader)
        Header to whitelist, allowing a plugin to include them in the response.
        Parameters:
        allowedResponseHeader - name of the header
        Returns:
        updated request
      • postBuild

        protected void postBuild​(JsonBuilderFactory factory,
                                 JsonObjectBuilder payload)
        Description copied from class: ApiJsonBuilder
        Called after adding properties defined in this request.
        Overrides:
        postBuild in class ApiJsonBuilder<T extends io.helidon.integrations.vault.sys.MountRequest<T>>
        Parameters:
        factory - json factory
        payload - payload builder
      • defaultPath

        protected void defaultPath​(String defaultMount)