Get an Access Token
Get specific Access Token by ID. Note that the returned Access Token will include other metadata but will not include the secret, and therefore cannot be used to authenticate SDK requests. The secret is only available when you first create a new Access Token because Catalytic does not store the Access Token secret. As a security measure, only a hash of the secret is stored.
Permissions Required
You can only get metadata for Access Tokens that you created, unless you are a team administrator in which case you can get metadata for all Access Tokens on your Catalytic team.
Method Signature
AccessToken get(String id);
Parameters
Parameter | Type | Description |
---|---|---|
id | String | The id of the Access Token to get |
returns | AccessToken | The Access Token |
Example
/*
* This example demonstrates getting an AccessToken by ID
*/
import org.catalytic.sdk.CatalyticClient;
import org.catalytic.sdk.entities.AccessToken;
public class Program {
public static void main(String[] args) throws Exception {
// Create and initialize the Catalytic SDK Client
CatalyticClient catalytic = new CatalyticClient();
// Get Access Token by id
AccessToken accessTokens = catalytic.accessTokens().get("114c0d7d-c291-4ad2-a10d-68c5dd532af3");
}
}
Updated over 2 years ago