|
|
@ -31,9 +31,9 @@ final _logger = Logger('kdbx.format'); |
|
|
|
abstract class Credentials { |
|
|
|
abstract class Credentials { |
|
|
|
factory Credentials(ProtectedValue password) => |
|
|
|
factory Credentials(ProtectedValue password) => |
|
|
|
Credentials.composite(password, null); //PasswordCredentials(password); |
|
|
|
Credentials.composite(password, null); //PasswordCredentials(password); |
|
|
|
factory Credentials.composite(ProtectedValue password, Uint8List? keyFile) => |
|
|
|
factory Credentials.composite(ProtectedValue? password, Uint8List? keyFile) => |
|
|
|
KeyFileComposite( |
|
|
|
KeyFileComposite( |
|
|
|
password: PasswordCredentials(password), |
|
|
|
password: password?.let((that) => PasswordCredentials(that)), |
|
|
|
keyFile: keyFile == null ? null : KeyFileCredentials(keyFile), |
|
|
|
keyFile: keyFile == null ? null : KeyFileCredentials(keyFile), |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|