NPA class abstract

  • Listens for authorization check requests from sshnp daemons
  • Checks if the clientAtSign is currently authorized to access the sshnpd atSign and device
  • Responds accordingly
Implementers

Constructors

NPA()

Properties

atClient ↔ AtClient
The AtClient used to communicate with SSHNPDs
getter/setter pair
authorizerAtsign String
no setter
daemonAtsigns Set<String>
no setter
handler NPARequestHandler
no setter
hashCode int
The hash code for this object.
no setterinherited
homeDirectory String
The home directory on this host
final
logger → AtSignLogger
final
loggingAtsign String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handleRequest(AtRpcReq request, String fromAtSign) Future<AtRpcResp>
Called when a 'request' is received
inherited
handleResponse(AtRpcResp response) Future<void>
Called when a 'response' is received
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() Future<void>
Starts the sshnpa service
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromCommandLineArgs(List<String> args, {required NPARequestHandler handler, AtClient? atClient, FutureOr<AtClient> atClientGenerator(NPAParams)?, void usageCallback(Object, StackTrace)?, Set<String>? daemonAtsigns}) Future<NPA>