ibm-cloud-sdk-core
Version:
Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.
127 lines (58 loc) • 1.8 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamTokenManager](./ibm-cloud-sdk-core.iamtokenmanager.md)
## IamTokenManager class
The IamTokenManager takes an api key and performs the necessary interactions with the IAM token service to obtain and store a suitable bearer token. Additionally, the IamTokenManager will retrieve bearer tokens via basic auth using a supplied "clientId" and "clientSecret" pair.
**Signature:**
```typescript
export declare class IamTokenManager extends IamRequestBasedTokenManager
```
**Extends:** [IamRequestBasedTokenManager](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md)
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[(constructor)(options)](./ibm-cloud-sdk-core.iamtokenmanager._constructor_.md)
</td><td>
</td><td>
Create a new IamTokenManager instance.
</td></tr>
</tbody></table>
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[requiredOptions](./ibm-cloud-sdk-core.iamtokenmanager.requiredoptions.md)
</td><td>
`protected`
</td><td>
string\[\]
</td><td>
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[getRefreshToken()](./ibm-cloud-sdk-core.iamtokenmanager.getrefreshtoken.md)
</td><td>
</td><td>
Returns the most recently stored refresh token.
</td></tr>
</tbody></table>