Token

DTO class for JWTs.

Author

Jan Müller
data class Token(token: String,expiration: Long)

Constructors

<init>
Link copied to clipboard
fun <init>(token: String, expiration: Long)

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): Long
copy
Link copied to clipboard
fun copy(token: String, expiration: Long): Token
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

expiration
Link copied to clipboard
The expiration of this JWT.
val expiration: Long
token
Link copied to clipboard
The JWT.
val token: String