<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md)

## VpcInstanceTokenManager class

Token Manager for VPC Instance Authentication.

**Signature:**

```typescript
export declare class VpcInstanceTokenManager extends JwtTokenManager 
```
**Extends:** [JwtTokenManager](./ibm-cloud-sdk-core.jwttokenmanager.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.vpcinstancetokenmanager._constructor_.md)


</td><td>


</td><td>

Create a new VpcInstanceTokenManager instance.


</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[isTokenExpired()](./ibm-cloud-sdk-core.vpcinstancetokenmanager.istokenexpired.md)


</td><td>

`protected`


</td><td>

Returns true iff the currently-cached IAM access token is expired. We'll consider an access token as expired when we reach its IAM server-reported expiration time minus our expiration window (10 secs). We do this to avoid using an access token that might expire in the middle of a long-running transaction within an IBM Cloud service.


</td></tr>
<tr><td>

[requestToken()](./ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md)


</td><td>

`protected`


</td><td>


</td></tr>
<tr><td>

[setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md)


</td><td>


</td><td>

Sets the CRN of the IAM trusted profile to use when fetching the access token from the IAM token server.


</td></tr>
<tr><td>

[setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md)


</td><td>


</td><td>

Sets the Id of the IAM trusted profile to use when fetching the access token from the IAM token server.


</td></tr>
</tbody></table>
