Record Class ApiKey
java.lang.Object
java.lang.Record
org.jwcarman.who.apikey.ApiKey
- Record Components:
id- the key's credential idname- the key's namescopes- the permissions the key may use, at mostcreatedAt- when the key was madeexpiresAt- when the key stops, or stopped, signing inlastUsedAt- when it last signed in, to within the last-used interval;nullwhen it never hasexpired- whetherexpiresAthad passed when the list was made
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexpired()Returns the value of theexpiredrecord component.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thelastUsedAtrecord component.name()Returns the value of thenamerecord component.scopes()Returns the value of thescopesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApiKey
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
name
-
scopes
-
createdAt
-
expiresAt
-
lastUsedAt
Returns the value of thelastUsedAtrecord component.- Returns:
- the value of the
lastUsedAtrecord component
-
expired
-