Record Class SecretIdInfo

java.lang.Object
java.lang.Record
codes.grow.packages.vault.SecretIdInfo
Record Components:
secretId - the secret id (redacted)
secretIdAccessor - its accessor (redacted)
secretIdNumUses - allowed uses (0 = unlimited)
secretIdTtl - TTL (zero = never expires)

public record SecretIdInfo(Secret secretId, Secret secretIdAccessor, int secretIdNumUses, Duration secretIdTtl) extends Record
A generated AppRole secret id.
  • Constructor Details

    • SecretIdInfo

      public SecretIdInfo(Secret secretId, Secret secretIdAccessor, int secretIdNumUses, Duration secretIdTtl)
      Creates an instance of a SecretIdInfo record class.
      Parameters:
      secretId - the value for the secretId record component
      secretIdAccessor - the value for the secretIdAccessor record component
      secretIdNumUses - the value for the secretIdNumUses record component
      secretIdTtl - the value for the secretIdTtl record component
  • 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.
    • secretId

      public Secret secretId()
      Returns the value of the secretId record component.
      Returns:
      the value of the secretId record component
    • secretIdAccessor

      public Secret secretIdAccessor()
      Returns the value of the secretIdAccessor record component.
      Returns:
      the value of the secretIdAccessor record component
    • secretIdNumUses

      public int secretIdNumUses()
      Returns the value of the secretIdNumUses record component.
      Returns:
      the value of the secretIdNumUses record component
    • secretIdTtl

      public Duration secretIdTtl()
      Returns the value of the secretIdTtl record component.
      Returns:
      the value of the secretIdTtl record component