LocalSshKeyUtil class

Implemented types

Constructors

LocalSshKeyUtil.new({String? homeDirectory, bool cacheKeys = true, @visibleForTesting FileSystem fs = const LocalFileSystem()})

Properties

cacheKeys bool
getter/setter pair
fs → FileSystem
final
hashCode int
The hash code for this object.
no setterinherited
homeDirectory String
final
isValidPlatform bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sshHomeDirectory String
no setter
sshnpHomeDirectory String
no setter
username String
no setter

Methods

addKeyPair({required AtSshKeyPair keyPair, String? identifier}) Future<List<File>>
override
authorizePublicKey({required String sshPublicKey, required int localSshdPort, String sessionId = '', String permissions = ''}) Future<void>
Add the public key to the authorized_keys file.
deauthorizePublicKey(String sessionId) Future<void>
deleteKeyPair({required String identifier}) Future<List<FileSystemEntity>>
override
generateKeyPair({required String identifier, SupportedSshAlgorithm algorithm = DefaultArgs.sshAlgorithm, String? directory, String? passphrase, ProcessRunner processRunner = Process.run}) Future<AtSshKeyPair>
override
getKeyPair({required String identifier, String? passphrase}) Future<AtSshKeyPair>
override
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