Record Class MountInfo

java.lang.Object
java.lang.Record
codes.grow.packages.vault.MountInfo
Record Components:
type - engine type, e.g. kv, approle
description - description
accessor - mount accessor
options - engine options (e.g. version=2)
config - mount config (TTLs, token type, ...)
local - whether the mount is local to the cluster
sealWrap - whether seal wrapping is on

public record MountInfo(String type, String description, String accessor, Map<String,String> options, Map<String,String> config, boolean local, boolean sealWrap) extends Record
A secrets engine or auth method mount.
  • Constructor Details

    • MountInfo

      public MountInfo(String type, String description, String accessor, Map<String,String> options, Map<String,String> config, boolean local, boolean sealWrap)
      Creates the record; maps are copied.
      Parameters:
      type - type
      description - description
      accessor - accessor
      options - options
      config - config
      local - local flag
      sealWrap - seal wrap flag
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • accessor

      public String accessor()
      Returns the value of the accessor record component.
      Returns:
      the value of the accessor record component
    • options

      public Map<String,String> options()
      Returns the value of the options record component.
      Returns:
      the value of the options record component
    • config

      public Map<String,String> config()
      Returns the value of the config record component.
      Returns:
      the value of the config record component
    • local

      public boolean local()
      Returns the value of the local record component.
      Returns:
      the value of the local record component
    • sealWrap

      public boolean sealWrap()
      Returns the value of the sealWrap record component.
      Returns:
      the value of the sealWrap record component