FileSecretsRepository class
Stores secrets inside of a file. Automatically generates the secrets file if it doesn't exist.
- Inheritance
-
- Object
- AuthenticationSecretsRepository
- FileSecretsRepository
- Available extensions
Constructors
- FileSecretsRepository({required String secretsFile, Random? random})
-
secretsFileis the path to where the secrets file can be found and stored.
Properties
- channel ↔ BlocEventChannel
-
This is shared between all
Repositorys in the repository layer.latefinalinherited -
generator
→ Future<
UserAuthenticationGenerator> -
Available on AuthenticationSecretsRepository, provided by the AuthenticationSecretsRepositoryRepositoryGenerator extension
Creates a UserAuthenticationGenerator based on the result of secretsno setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
jwtSecret
→ Future<
String> -
Retrieves the jwt secret from a potentially secure place.
no setteroverride
- random → Random?
-
Specified iff a specific random seed is necessary such as in tests
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secrets
→ Future<
AuthenticationSecretsModel> -
Retrieves the secrets from a potentially secure place.
no setteroverride
- secretsFile → String
-
the path to where the secrets file can be found and stored.
final
Methods
-
clearSecrets(
) → void -
Clears any secrets that have been set.
override
-
dispose(
) → void -
Disposes this value to save memory. Implementations should be idempotent.
inherited
-
generateListeners(
BlocEventChannel channel) → List< BlocEventListener> -
Generates the listener map that this
Repositorywill remove from thechannelwhen this repository is disposed. -
initialize(
BlocEventChannel channel) → void -
Initializes this repository, adding the listeners produced by
generateListenersto the givenchannel.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited