getTrustStore method

Future<GetTrustStoreResult> getTrustStore({
  1. required String identifier,
})

Gets a trust store.

May throw AccessDenied. May throw EntityNotFound. May throw InvalidArgument.

Parameter identifier : The trust store's identifier.

Implementation

Future<GetTrustStoreResult> getTrustStore({
  required String identifier,
}) async {
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri: '/2020-05-31/trust-store/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return GetTrustStoreResult(
    trustStore: TrustStore.fromXml($elem),
    eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
  );
}