ManagedAuthToken class Null safety
Represent an OAuth 2.0 authorization token and authorization code.
Instances of this type are created by ManagedAuthDelegate to store authorization tokens and codes on behalf of an AuthServer. There is no need to use this class directly.
- Inheritance
-
- Object
- Serializable
- ManagedObject<
_ManagedAuthToken> - ManagedAuthToken
Constructors
- ManagedAuthToken()
- Empty instance.
- ManagedAuthToken.fromCode(AuthCode code)
- Instance from an AuthCode.
- ManagedAuthToken.fromToken(AuthToken t)
- Instance from an AuthToken.
Properties
- accessToken ↔ String?
-
The access token of an authorization token.
read / writeinherited
- backing ↔ ManagedBacking
-
The persistent values of this object.
read / writeinherited
- client ↔ ManagedAuthClient
-
The client this token was issued for.
read / writeinherited
- code ↔ String?
-
The authorization code of this token.
read / writeinherited
- entity ↔ ManagedEntity
-
The ManagedEntity this instance is described by.
read / writeinherited
- expirationDate ↔ DateTime?
-
When this token will expire.
read / writeinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ int?
-
A primary key identifier.
read / writeinherited
- issueDate ↔ DateTime?
-
When this token was last issued or refreshed.
read / writeinherited
- modelFieldIncludeIfNull → bool
-
latefinalinherited
-
properties
↔ Map<
String?, ManagedPropertyDescription?> -
IMPROVEMENT: Cache of entity.properties to reduce property loading time
read / writeinherited
- refreshToken ↔ String?
-
The refresh token of an authorization token.
read / writeinherited
- resourceOwner ↔ ResourceOwnerTableDefinition?
-
The resource owner of this token.
read / writeinherited
-
responseKeyProperties
↔ Map<
String?, ManagedPropertyDescription?> -
Cache of entity.properties using ResponseKey name as key, in case no ResponseKey is set then default property name is used as key
read / writeinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- scope ↔ String?
-
Scopes for this token, delimited by the space character.
read / writeinherited
- type ↔ String?
-
The value 'bearer'.
read / writeinherited
Methods
-
asAuthCode(
) → AuthCode - As an AuthCode.
-
asMap(
) → Map< String, dynamic> -
Converts this instance into a serializable map.
inherited
-
asToken(
) → AuthToken - As an AuthToken.
-
documentSchema(
APIDocumentContext context) → APISchemaObject -
Returns an
APISchemaObject
describing this object's type.inherited -
hasValueForProperty(
String propertyName) → bool -
Checks whether or not a property has been set in this instances' backing.
inherited
-
mapKeyName(
String propertyName) → String -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
read(
Map< String, dynamic> object, {Iterable<String> ? accept, Iterable<String> ? ignore, Iterable<String> ? reject, Iterable<String> ? require}) → void -
Reads values from
object
, after applying filters.inherited -
readFromMap(
Map< String, dynamic> object) → void -
Reads values from
object
.inherited -
removePropertiesFromBackingMap(
List< String> propertyNames) → void -
Removes multiple properties from backing.
inherited
-
removePropertyFromBackingMap(
String? propertyName) → void -
Removes a property from backing.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
{Validating forEvent = Validating.insert}) → ValidationContext -
Validates an object according to its property Validate metadata.
inherited
-
willInsert(
) → void -
Callback to modify an object prior to inserting it with a Query.
inherited
-
willUpdate(
) → void -
Callback to modify an object prior to updating it with a Query.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String? propertyName) → dynamic -
Retrieves a value by property name from backing.
inherited
-
operator []=(
String? propertyName, dynamic value) → void -
Sets a value by property name in backing.
inherited