Token

@Serializable
class Token : TokenInfo

Token information representing a user's access to a resource server, including access token, refresh token, and other related information.

Constructors

Link copied to clipboard
constructor(id: String, tokenType: String, expiresIn: Int, accessToken: String, scope: String?, refreshToken: String?, idToken: String?, deviceSecret: String?, issuedTokenType: String?, oidcConfiguration: OidcConfiguration)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Metadata(val id: String, val tags: Map<String, String>, val payloadData: JsonObject?)

Non-sensitive information about the Token to be used in storage.

Properties

Link copied to clipboard
open override val accessToken: String

The access token.

Link copied to clipboard
open override val clientId: String

The client id of the application that minted this token.

Link copied to clipboard
open override val deviceSecret: String?

The device secret, if requested.

Link copied to clipboard
open override val expiresIn: Int

The expiration duration in seconds for this token.

Link copied to clipboard
open override val id: String

Unique identifier for this token.

Link copied to clipboard
open override val idToken: String?

The ID token, if requested.

Link copied to clipboard
open override val issuedTokenType: String?

The issued token type, if returned.

Link copied to clipboard
open override val issuerUrl: String

The issuer url of the token.

Link copied to clipboard

The configuration that was used to fetch this token.

Link copied to clipboard
open override val refreshToken: String?

The refresh token, if requested.

Link copied to clipboard
open override val scope: String?

The scopes granted when this token was minted.

Link copied to clipboard
open override val tokenType: String

The string type of the token (e.g. Bearer).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int