UserIdentifier

sealed class UserIdentifier

The OAuth2.0 token or user ID that was used to generate the workload access token used for initiating the user authorization flow to retrieve OAuth2.0 tokens.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
data class UserId(val value: String) : UserIdentifier

The ID of the user for whom you have retrieved a workload access token for

Link copied to clipboard
data class UserToken(val value: String) : UserIdentifier

The OAuth2.0 token issued by the user’s identity provider

Functions

Link copied to clipboard

Casts this UserIdentifier as a UserId and retrieves its kotlin.String value. Throws an exception if the UserIdentifier is not a UserId.

Link copied to clipboard

Casts this UserIdentifier as a UserId and retrieves its kotlin.String value. Returns null if the UserIdentifier is not a UserId.

Link copied to clipboard

Casts this UserIdentifier as a UserToken and retrieves its kotlin.String value. Throws an exception if the UserIdentifier is not a UserToken.

Link copied to clipboard

Casts this UserIdentifier as a UserToken and retrieves its kotlin.String value. Returns null if the UserIdentifier is not a UserToken.