Package land.oras.auth
Record Class BearerTokenProvider.TokenResponse
java.lang.Object
java.lang.Record
land.oras.auth.BearerTokenProvider.TokenResponse
- Record Components:
token
- The tokenaccess_token
- The access tokenexpire_in
- The expire inissued_at
- The issued at
- Enclosing class:
- BearerTokenProvider
@NullMarked
public static record BearerTokenProvider.TokenResponse(String token, String access_token, Integer expire_in, ZonedDateTime issued_at)
extends Record
The token response
-
Constructor Summary
ConstructorsConstructorDescriptionTokenResponse
(String token, String access_token, Integer expire_in, ZonedDateTime issued_at) Creates an instance of aTokenResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccess_token
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpire_in
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theissued_at
record component.token()
Returns the value of thetoken
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TokenResponse
Creates an instance of aTokenResponse
record class.- Parameters:
token
- the value for thetoken
record componentaccess_token
- the value for theaccess_token
record componentexpire_in
- the value for theexpire_in
record componentissued_at
- the value for theissued_at
record 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 thetoken
record component.- Returns:
- the value of the
token
record component
-
access_token
Returns the value of theaccess_token
record component.- Returns:
- the value of the
access_token
record component
-
expire_in
Returns the value of theexpire_in
record component.- Returns:
- the value of the
expire_in
record component
-
issued_at
Returns the value of theissued_at
record component.- Returns:
- the value of the
issued_at
record component
-