Grant

sealed class Grant

The Grant union represents the set of possible configuration options for the selected grant type. Exactly one member of the union must be specified, and must match the grant type selected.

Inheritors

Types

Link copied to clipboard

Configuration options for the authorization_code grant type.

Link copied to clipboard
data class JwtBearer(val value: JwtBearerGrant) : Grant

Configuration options for the urn:ietf:params:oauth:grant-type:jwt-bearer grant type.

Link copied to clipboard
data class RefreshToken(val value: RefreshTokenGrant) : Grant

Configuration options for the refresh_token grant type.

Link copied to clipboard
object SdkUnknown : Grant
Link copied to clipboard
data class TokenExchange(val value: TokenExchangeGrant) : Grant

Configuration options for the urn:ietf:params:oauth:grant-type:token-exchange grant type.

Functions

Link copied to clipboard
Link copied to clipboard

Casts this Grant as a JwtBearer and retrieves its aws.sdk.kotlin.services.ssoadmin.model.JwtBearerGrant value. Throws an exception if the Grant is not a JwtBearer.

Link copied to clipboard

Casts this Grant as a JwtBearer and retrieves its aws.sdk.kotlin.services.ssoadmin.model.JwtBearerGrant value. Returns null if the Grant is not a JwtBearer.

Link copied to clipboard

Casts this Grant as a RefreshToken and retrieves its aws.sdk.kotlin.services.ssoadmin.model.RefreshTokenGrant value. Throws an exception if the Grant is not a RefreshToken.

Link copied to clipboard
Link copied to clipboard

Casts this Grant as a TokenExchange and retrieves its aws.sdk.kotlin.services.ssoadmin.model.TokenExchangeGrant value. Throws an exception if the Grant is not a TokenExchange.

Link copied to clipboard