Record Class CredentialSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.security.api.CredentialSnapshot
- Record Components:
credential- credential descriptorrotatedAt- rotation timestamp
Immutable credential snapshot.
-
Constructor Summary
ConstructorsConstructorDescriptionCredentialSnapshot(Credential credential, Instant rotatedAt) Creates a snapshot. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecredentialrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therotatedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CredentialSnapshot
Creates a snapshot.
-
-
Method Details
-
toString
-
hashCode
-
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). -
credential
Returns the value of thecredentialrecord component.- Returns:
- the value of the
credentialrecord component
-
rotatedAt
-