Creates a new trusted entity credential.
The request object containing the details of the trusted entity credential to be created.
Optional
scaDetails: ScaAuthenticationEventRequestThe SCA details for retrying the wallet operation.
A promise that resolves to the created trusted entity credential.
If the HTTP request fails.
// Example usage:
trustedEntitiesService.createTrustedEntityCredential(request)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error creating trusted entity credential.`);
});
Deletes a trusted entity credential.
The request object containing the details of the trusted entity credential to be deleted.
Optional
scaDetails: ScaAuthenticationEventRequestThe SCA details for retrying the wallet operation.
A promise that resolves when the trusted entity credential is successfully deleted.
If the HTTP request fails.
// Example usage:
trustedEntitiesService.deleteTrustedEntityCredential(request)
.then(() => {
console.log(`Trusted entity credential deleted successfully.`);
})
.catch((error) => {
console.error(`Error deleting trusted entity credential.`);
});
Retrieves a list of trusted entities by entity type.
The type of the trusted entities to be returned.
Optional
scaDetails: ScaAuthenticationEventRequestThe SCA details for retrying the wallet operation.
A promise that resolves to a trusted entities list.
If the HTTP request fails.
// Example usage:
trustedEntitiesService.getTrustedEntityCredentials(entityType)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error fetching trusted entities.`);
});
Static
getRetrieves the singleton instance of the TrustedEntitiesService class.
The singleton instance of the TrustedEntitiesService class.
// Usage:
const trustedEntitiesService = TrustedEntitiesService.getInstance();
Service class for managing trusted entities related operations.