UNPKG

ibm-cloud-sdk-core

Version:

Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.

67 lines (32 loc) 1.53 kB
<!-- 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; [TokenRequestBasedAuthenticator](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md) ## TokenRequestBasedAuthenticator class Class for common functionality shared by token-request authenticators. TokenRequestBasedAuthenticators use token managers to retrieve, store, and refresh tokens. Not intended to be used as stand-alone authenticator, but as base class to authenticators that have their own token manager implementations. The token will be added as an Authorization header in the form: Authorization: Bearer &lt;<!-- -->bearer-token<!-- -->&gt; **Signature:** ```typescript export declare class TokenRequestBasedAuthenticator extends TokenRequestBasedAuthenticatorImmutable ``` **Extends:** TokenRequestBasedAuthenticatorImmutable ## Methods <table><thead><tr><th> Method </th><th> Modifiers </th><th> Description </th></tr></thead> <tbody><tr><td> [setDisableSslVerification(value)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md) </td><td> </td><td> Set the flag that indicates whether verification of the server's SSL certificate should be disabled or not. </td></tr> <tr><td> [setHeaders(headers)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md) </td><td> </td><td> Set headers. </td></tr> </tbody></table>