Ingresse
Extends:
Authentication → Ingresse
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
authData: {"apiKey": *, "userToken": *} |
Method Summary
Public Methods | ||
public |
Get Ingresse ApiKey |
|
public |
|
|
public |
getPublicKey(): * |
|
public |
Get formatted authentication settings |
|
public |
Get authentication token value |
|
public |
Set Ingresse ApiKey |
|
public |
Set Auth settings to 'Others Companies' validations |
|
public |
setPrivateKey(privateKey: string) |
|
public |
setPublicKey(apiKey: *) |
|
public |
Set authentication token value |
Inherited Summary
From class Authentication | ||
public get |
Get authentication data |
|
public set |
Set authentication data |
Static Public Methods
Public Constructors
public constructor() source
Public Members
public authData: {"apiKey": *, "userToken": *} source
Set authentication data
Override:
Authentication#authDataPublic Methods
public getToken(): string source
Get authentication token value
Example:
const userToken = ingresse.api.auth.getToken();
public setApiKey(apiKey: string) source
Set Ingresse ApiKey
Params:
Name | Type | Attribute | Description |
apiKey | string | Ingresse ApiKey |
Example:
ingresse.api.auth.setApiKey('12345678901234');
public setAuth(timestamp: string, signature: string, apiKey: string): boolean source
Set Auth settings to 'Others Companies' validations
Example:
ingresse.api.auth.setAuth('2018-03-14T16:10:13Z', 'signature-generated-before', 'your-app-api-key--optional');
public setPrivateKey(privateKey: string) source
Params:
Name | Type | Attribute | Description |
privateKey | string | Ingresse PrivateKey |
Example:
ingresse.api.auth.setPrivateKey('12345678901234');
public setPublicKey(apiKey: *) source
Params:
Name | Type | Attribute | Description |
apiKey | * |