TokenIntrospection

class TokenIntrospection(val active: Boolean, val scope: String? = null, val clientId: String? = null, val username: String? = null, val tokenType: String? = null, val expiresAt: Long? = null, val issuedAt: Long? = null, val notBefore: Long? = null, val subject: String? = null, val audience: List<String> = emptyList(), val issuer: String? = null, val jwtId: String? = null, val claims: JsonObject = JsonObject(emptyMap()))(source)

Normalized RFC 7662 token introspection response.

Report a problem

Constructors

Link copied to clipboard
constructor(active: Boolean, scope: String? = null, clientId: String? = null, username: String? = null, tokenType: String? = null, expiresAt: Long? = null, issuedAt: Long? = null, notBefore: Long? = null, subject: String? = null, audience: List<String> = emptyList(), issuer: String? = null, jwtId: String? = null, claims: JsonObject = JsonObject(emptyMap()))

Properties

Link copied to clipboard

whether the token is currently active.

Link copied to clipboard
@SerialName(value = "aud")
val audience: List<String>

normalized token audiences. String audiences are preserved as a single value.

Link copied to clipboard

raw JSON claims returned by the introspection endpoint.

Link copied to clipboard
@SerialName(value = "client_id")
val clientId: String?

client identifier associated with the token.

Link copied to clipboard
@SerialName(value = "exp")
val expiresAt: Long?

expiration time as seconds since the Unix epoch.

Link copied to clipboard
@SerialName(value = "iat")
val issuedAt: Long?

issuance time as seconds since the Unix epoch.

Link copied to clipboard
@SerialName(value = "iss")
val issuer: String?

token issuer.

Link copied to clipboard
@SerialName(value = "jti")
val jwtId: String?

token identifier.

Link copied to clipboard
@SerialName(value = "nbf")
val notBefore: Long?

not-before time as seconds since the Unix epoch.

Link copied to clipboard

OAuth scope string returned by the introspection endpoint.

Link copied to clipboard
@SerialName(value = "sub")
val subject: String?

subject identifier associated with the token.

Link copied to clipboard
@SerialName(value = "token_type")
val tokenType: String?

token type, such as Bearer.

Link copied to clipboard

resource owner username, when returned by the authorization server.