basicAuthenticationCredentials.d.ts 967 B

123456789101112131415161718192021222324
  1. import { WebResource } from "../webResource";
  2. import { ServiceClientCredentials } from "./serviceClientCredentials";
  3. export declare class BasicAuthenticationCredentials implements ServiceClientCredentials {
  4. userName: string;
  5. password: string;
  6. authorizationScheme: string;
  7. /**
  8. * Creates a new BasicAuthenticationCredentials object.
  9. *
  10. * @constructor
  11. * @param {string} userName User name.
  12. * @param {string} password Password.
  13. * @param {string} [authorizationScheme] The authorization scheme.
  14. */
  15. constructor(userName: string, password: string, authorizationScheme?: string);
  16. /**
  17. * Signs a request with the Authentication header.
  18. *
  19. * @param {WebResource} webResource The WebResource to be signed.
  20. * @returns {Promise<WebResource>} The signed request object.
  21. */
  22. signRequest(webResource: WebResource): Promise<WebResource>;
  23. }
  24. //# sourceMappingURL=basicAuthenticationCredentials.d.ts.map