Record Class CreatedApiKey
java.lang.Object
java.lang.Record
org.jwcarman.who.apikey.CreatedApiKey
- Record Components:
id- the key's idname- the key's namescopes- its scopes, sortedexpiresAt- when it stops signing in, ISO-8601key- the raw key; never intoString()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.key()Returns the value of thekeyrecord component.name()Returns the value of thenamerecord component.scopes()Returns the value of thescopesrecord component.toString()Describes the answer without the raw key, so it is safe to log.
-
Constructor Details
-
CreatedApiKey
Creates an instance of aCreatedApiKeyrecord class.
-
-
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). -
id
-
name
-
scopes
-
expiresAt
-
key
-