@Generated public class TokenManagementAPI extends Object
| Constructor and Description |
|---|
TokenManagementAPI(ApiClient apiClient)
Regular-use constructor
|
TokenManagementAPI(TokenManagementService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
CreateOboTokenResponse |
createOboToken(CreateOboTokenRequest request)
Create on-behalf token.
|
CreateOboTokenResponse |
createOboToken(String applicationId,
long lifetimeSeconds) |
void |
delete(DeleteTokenManagementRequest request)
Delete a token.
|
void |
delete(String tokenId) |
TokenInfo |
get(GetTokenManagementRequest request)
Get token info.
|
TokenInfo |
get(String tokenId) |
TokenManagementService |
impl() |
Iterable<TokenInfo> |
list(ListTokenManagementRequest request)
List all tokens.
|
public TokenManagementAPI(ApiClient apiClient)
public TokenManagementAPI(TokenManagementService mock)
public CreateOboTokenResponse createOboToken(String applicationId, long lifetimeSeconds)
public CreateOboTokenResponse createOboToken(CreateOboTokenRequest request)
Creates a token on behalf of a service principal.
public void delete(String tokenId)
public void delete(DeleteTokenManagementRequest request)
Deletes a token, specified by its ID.
public TokenInfo get(GetTokenManagementRequest request)
Gets information about a token, specified by its ID.
public Iterable<TokenInfo> list(ListTokenManagementRequest request)
Lists all tokens associated with the specified workspace or user.
public TokenManagementService impl()
Copyright © 2023. All rights reserved.