PregeneratedTokenCredential class final

A credential that accesses token-secured ArcGIS content and services using a token generated outside of your application.

Use this token if you are unable to use credentials, such as OAuthUserCredential or TokenCredential, and you have generated a token outside of the application.

If you use this PregeneratedTokenCredential as part of the secure resource challenge handling, it will be stored in the ArcGISCredentialStore of the AuthenticationManager. It will be used by all subsequent requests that have a matching URL context.

Inheritance

Constructors

PregeneratedTokenCredential({required Uri uri, required TokenInfo tokenInfo, required String referer})
Creates an instance of a PregeneratedTokenCredential.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
referer String
The referer used to generate a token.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverContext Uri
The URL by which the root of a server is accessed.
no setterinherited
tokenInfo TokenInfo
Gets the TokenInfo used to create the credential.
no setter
username String
The user associated with the credential.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
toJsonString() String
Returns a JSON representation of this Object as a String.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited