Class MountConfig

java.lang.Object
io.github.jopenlibs.vault.api.sys.mounts.MountConfig
All Implemented Interfaces:
Serializable

public class MountConfig extends Object implements Serializable

A container for options returned by mounts endpoints on the Secret Engine backend. This class is meant for use with a builder pattern style. Example usage:

Most of the time this will be wrapped inside Mount object rather than directly sent to Vault backend or back to the user.


 final MountConfig config = new MountConfig()
                                  .defaultLeaseTtl(2628000)
                                  .maxLeaseTtl(2628000)
                                  .description("description of pki");
 
See Also:
  • Constructor Details

    • MountConfig

      public MountConfig()
  • Method Details

    • defaultLeaseTtl

      public MountConfig defaultLeaseTtl(Integer defaultLeaseTtl)
    • maxLeaseTtl

      public MountConfig maxLeaseTtl(Integer maxLeaseTtl)
    • description

      public MountConfig description(String description)
    • forceNoCache

      public MountConfig forceNoCache(Boolean forceNoCache)
    • pluginName

      public MountConfig pluginName(String pluginName)
    • auditNonHmacRequestKeys

      public MountConfig auditNonHmacRequestKeys(List<String> auditNonHmacRequestKeys)
    • auditNonHmacResponseKeys

      public MountConfig auditNonHmacResponseKeys(List<String> auditNonHmacResponseKeys)
    • getAuditNonHmacRequestKeys

      public List<String> getAuditNonHmacRequestKeys()
    • getAuditNonHmacResponseKeys

      public List<String> getAuditNonHmacResponseKeys()
    • getDefaultLeaseTtl

      public Integer getDefaultLeaseTtl()
    • getMaxLeaseTtl

      public Integer getMaxLeaseTtl()
    • getDescription

      public String getDescription()
    • getForceNoCache

      public Boolean getForceNoCache()
    • getPluginName

      public String getPluginName()