TokenCredential class final
A credential used to access token-secured ArcGIS resources.
- Inheritance
-
- Object
- ArcGISCredential
- TokenCredential
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
- tokenExpirationInterval → int
-
The length of time a token credential remains valid. Represented in
minutes. If not explicitly set, the server default is used.
no setter
- username → String
-
The user associated with the credential.
no setterinherited
Methods
-
getTokenInfo(
) → Future< TokenInfo> -
Returns an instance of
TokenInfo
generated by this credential. -
getTokenInfoCancelable(
) → CancelableOperation< TokenInfo> - Cancelable version of getTokenInfo. See that method for more information.
-
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
Static Methods
-
create(
{required Uri uri, required String username, required String password, int tokenExpirationInterval = 0}) → Future< TokenCredential> -
Creates a
TokenCredential
with information needed to access an ArcGIS resource. -
createCancelable(
{required Uri uri, required String username, required String password, int tokenExpirationInterval = 0}) → Future< CancelableOperation< TokenCredential> > - Cancelable version of create. See that method for more information.
-
createNetworkSecured(
{required Uri uri, required String username, int tokenExpirationInterval = 0}) → Future< TokenCredential> -
Creates a
TokenCredential
with information needed to access an ArcGIS resource. -
createNetworkSecuredCancelable(
{required Uri uri, required String username, int tokenExpirationInterval = 0}) → Future< CancelableOperation< TokenCredential> > - Cancelable version of createNetworkSecured. See that method for more information.
-
createWithChallenge(
ArcGISAuthenticationChallenge challenge, {required String username, required String password, int tokenExpirationInterval = 0}) → Future< TokenCredential> -
Creates a
TokenCredential
with information needed to access an ArcGIS resource. -
createWithChallengeCancelable(
ArcGISAuthenticationChallenge challenge, {required String username, required String password, int tokenExpirationInterval = 0}) → Future< CancelableOperation< TokenCredential> > - Cancelable version of createWithChallenge. See that method for more information.