Package codes.grow.packages.vault
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 Summary
ConstructorsConstructorDescriptionSecretIdInfo(Secret secretId, Secret secretIdAccessor, int secretIdNumUses, Duration secretIdTtl) Creates an instance of aSecretIdInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.secretId()Returns the value of thesecretIdrecord component.Returns the value of thesecretIdAccessorrecord component.intReturns the value of thesecretIdNumUsesrecord component.Returns the value of thesecretIdTtlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SecretIdInfo
public SecretIdInfo(Secret secretId, Secret secretIdAccessor, int secretIdNumUses, Duration secretIdTtl) Creates an instance of aSecretIdInforecord class.- Parameters:
secretId- the value for thesecretIdrecord componentsecretIdAccessor- the value for thesecretIdAccessorrecord componentsecretIdNumUses- the value for thesecretIdNumUsesrecord componentsecretIdTtl- the value for thesecretIdTtlrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
secretId
Returns the value of thesecretIdrecord component.- Returns:
- the value of the
secretIdrecord component
-
secretIdAccessor
Returns the value of thesecretIdAccessorrecord component.- Returns:
- the value of the
secretIdAccessorrecord component
-
secretIdNumUses
public int secretIdNumUses()Returns the value of thesecretIdNumUsesrecord component.- Returns:
- the value of the
secretIdNumUsesrecord component
-
secretIdTtl
Returns the value of thesecretIdTtlrecord component.- Returns:
- the value of the
secretIdTtlrecord component
-