ManagedAuthToken class

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

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.
getter/setter pairinherited
backing ManagedBacking
The persistent values of this object.
getter/setter pairinherited
client ManagedAuthClient
The client this token was issued for.
getter/setter pairinherited
code String?
The authorization code of this token.
getter/setter pairinherited
entity ManagedEntity
The ManagedEntity this instance is described by.
getter/setter pairinherited
expirationDate DateTime?
When this token will expire.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id int?
A primary key identifier.
getter/setter pairinherited
issueDate DateTime?
When this token was last issued or refreshed.
getter/setter pairinherited
modelFieldIncludeIfNull bool
latefinalinherited
properties Map<String, ManagedPropertyDescription?>
IMPROVEMENT: Cache of entity.properties to reduce property loading time
getter/setter pairinherited
refreshToken String?
The refresh token of an authorization token.
getter/setter pairinherited
resourceOwner ResourceOwnerTableDefinition
The resource owner of this token.
getter/setter pairinherited
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
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String?
Scopes for this token, delimited by the space character.
getter/setter pairinherited
type String?
The value 'bearer'.
getter/setter pairinherited

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 nonexistent 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