- java.lang.Object
-
- io.github.jopenlibs.vault.api.mounts.MountPayload
-
- All Implemented Interfaces:
java.io.Serializable
public class MountPayload extends java.lang.Object implements java.io.Serializable
A container for options sent to mounts endpoints on the Secret Engine backend as REST payload. This class is meant for use with a builder pattern style. Example usage:
final MountPayload payload = new MountPayload() .defaultLeaseTtl(TimeToLive.of(30, TimeUnit.MINUTES)) .maxLeaseTtl(TimeToLive.of(30, TimeUnit.MINUTES)) .description("description of pki");
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MountPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MountPayload
auditNonHmacRequestKeys(java.util.List<java.lang.String> auditNonHmacRequestKeys)
MountPayload
auditNonHmacResponseKeys(java.util.List<java.lang.String> auditNonHmacResponseKeys)
MountPayload
defaultLeaseTtl(TimeToLive defaultLeaseTtl)
MountPayload
description(java.lang.String description)
MountPayload
forceNoCache(java.lang.Boolean forceNoCache)
java.util.List<java.lang.String>
getAuditNonHmacRequestKeys()
java.util.List<java.lang.String>
getAuditNonHmacResponseKeys()
TimeToLive
getDefaultLeaseTtl()
java.lang.String
getDescription()
java.lang.Boolean
getForceNoCache()
java.lang.Boolean
getLocal()
TimeToLive
getMaxLeaseTtl()
java.lang.String
getPluginName()
java.lang.Boolean
getSealWrap()
MountPayload
local(java.lang.Boolean local)
MountPayload
maxLeaseTtl(TimeToLive maxLeaseTtl)
MountPayload
pluginName(java.lang.String pluginName)
MountPayload
sealWrap(java.lang.Boolean sealWrap)
JsonObject
toEnableJson(MountType type)
JsonObject
toTuneJson()
-
-
-
Method Detail
-
defaultLeaseTtl
public MountPayload defaultLeaseTtl(TimeToLive defaultLeaseTtl)
-
maxLeaseTtl
public MountPayload maxLeaseTtl(TimeToLive maxLeaseTtl)
-
description
public MountPayload description(java.lang.String description)
-
forceNoCache
public MountPayload forceNoCache(java.lang.Boolean forceNoCache)
-
pluginName
public MountPayload pluginName(java.lang.String pluginName)
-
local
public MountPayload local(java.lang.Boolean local)
-
sealWrap
public MountPayload sealWrap(java.lang.Boolean sealWrap)
-
auditNonHmacRequestKeys
public MountPayload auditNonHmacRequestKeys(java.util.List<java.lang.String> auditNonHmacRequestKeys)
-
auditNonHmacResponseKeys
public MountPayload auditNonHmacResponseKeys(java.util.List<java.lang.String> auditNonHmacResponseKeys)
-
getAuditNonHmacRequestKeys
public java.util.List<java.lang.String> getAuditNonHmacRequestKeys()
-
getAuditNonHmacResponseKeys
public java.util.List<java.lang.String> getAuditNonHmacResponseKeys()
-
toEnableJson
public JsonObject toEnableJson(MountType type)
-
toTuneJson
public JsonObject toTuneJson()
-
getDefaultLeaseTtl
public TimeToLive getDefaultLeaseTtl()
-
getMaxLeaseTtl
public TimeToLive getMaxLeaseTtl()
-
getDescription
public java.lang.String getDescription()
-
getForceNoCache
public java.lang.Boolean getForceNoCache()
-
getPluginName
public java.lang.String getPluginName()
-
getLocal
public java.lang.Boolean getLocal()
-
getSealWrap
public java.lang.Boolean getSealWrap()
-
-