SecureFhirClient class
FHIR Client that extends the base client and allows secure transactions
- Inheritance
-
- Object
- FhirClient
- SecureFhirClient
- Implementers
Constructors
Properties
-
authHeaders
↔ Map<
String, String> ? -
authHeaders that can be stored while in use for a client not using an oauth2
flow but has security headers
getter/setter pair
- clientId ↔ String?
-
clientId for the application
getter/setter pair
- fhirUri ↔ FhirUri
-
Base fhirUri
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- launch ↔ String?
-
String for launch context
getter/setter pairinherited
- redirectUri ↔ FhirUri?
-
redirectUri is required for most oAuth2 flows
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scopes
↔ List<
String> ? -
Scopes which aren't required for this base class but are used for any that
involve authentication & permissions
getter/setter pairinherited
- secret ↔ String?
-
Secret string, which isn't a good idea, because most of Flutter is web or
mobile, so you really shouldn't be using a secret
getter/setter pair
Methods
-
close(
) → void -
Not so important for the generic client
inherited
-
delete(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding}) → Future<Response> -
Sends an HTTP DELETE request with the given headers to the given URL.
Adds security headers to the request before sending.
override
-
get(
Uri url, {Map< String, String> ? headers}) → Future<Response> -
Sends an HTTP GET request with the given headers to the given URL.
override
-
head(
Uri url, {Map< String, String> ? headers}) → Future<Response> -
Sends an HTTP HEAD request with the given headers to the given URL.
inherited
-
isLoggedIn(
) → Future< bool> - Checks if client isLoggedIn (same as isSignedIn), maintained because some clients use one and some prefer the other
-
isSignedIn(
) → Future< bool> - Checks if client isSignedIn (same as isLoggedIn), maintained because some clients use one and some prefer the other
-
login(
) → Future< void> - Method to login the client
-
logout(
) → Future< void> - Logs the client out and deletes any security information that shouldn't be stored
-
newHeaders(
Map< String, String> ? headers) → Future<Map< String, String> > - Checks and adds the authHeaders to any requests made to the server
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patch(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding}) → Future<Response> -
Sends an HTTP PATCH request with the given headers to the given URL.
Adds security headers to the request before sending.
override
-
post(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding}) → Future<Response> -
Sends an HTTP POST request with the given headers to the given URL.
Adds security headers to the request before sending.
override
-
put(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding}) → Future<Response> -
Sends an HTTP PUT request with the given headers to the given URL.
Adds security headers to the request before sending.
override
-
read(
Uri url, {Map< String, String> ? headers}) → Future<String> -
Sends an HTTP GET request with the given headers to the given URL and
returns a Future that completes to the body of the response as a String.
inherited
-
readBytes(
Uri url, {Map< String, String> ? headers}) → Future<Uint8List> -
Sends an HTTP GET request with the given headers to the given URL and
returns a Future that completes to the body of the response as a list of
bytes.
inherited
-
send(
BaseRequest request) → Future< StreamedResponse> -
Sends an HTTP request and asynchronously returns the response.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited