Package codes.grow.packages.vault
Record Class WrapInfo
java.lang.Object
java.lang.Record
codes.grow.packages.vault.WrapInfo
- Record Components:
token- single-use wrapping token (redacted)accessor- its accessorttl- validitycreationTime- creation timecreationPath- path that created the wrapped response
public record WrapInfo(Secret token, Optional<Secret> accessor, Duration ttl, Optional<Instant> creationTime, String creationPath)
extends Record
A response-wrapping token (
wrap_info).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessor()Returns the value of theaccessorrecord component.Returns the value of thecreationPathrecord component.Returns the value of thecreationTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.ttl()Returns the value of thettlrecord component.
-
Constructor Details
-
WrapInfo
public WrapInfo(Secret token, Optional<Secret> accessor, Duration ttl, Optional<Instant> creationTime, String creationPath) Creates an instance of aWrapInforecord class.- Parameters:
token- the value for thetokenrecord componentaccessor- the value for theaccessorrecord componentttl- the value for thettlrecord componentcreationTime- the value for thecreationTimerecord componentcreationPath- the value for thecreationPathrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
accessor
Returns the value of theaccessorrecord component.- Returns:
- the value of the
accessorrecord component
-
ttl
Returns the value of thettlrecord component.- Returns:
- the value of the
ttlrecord component
-
creationTime
Returns the value of thecreationTimerecord component.- Returns:
- the value of the
creationTimerecord component
-
creationPath
Returns the value of thecreationPathrecord component.- Returns:
- the value of the
creationPathrecord component
-