From 7341ead2aade10ea1b833e94275277658741883a Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Mon, 18 Aug 2025 21:09:11 +0200 Subject: switch to multi-module project structure --- src/main/kotlin/Authenticator.kt | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/main/kotlin/Authenticator.kt (limited to 'src/main/kotlin/Authenticator.kt') diff --git a/src/main/kotlin/Authenticator.kt b/src/main/kotlin/Authenticator.kt deleted file mode 100644 index 932004f..0000000 --- a/src/main/kotlin/Authenticator.kt +++ /dev/null @@ -1,18 +0,0 @@ -/** - * The Authenticator interface provides methods for authenticating a user over an established protocol connection. - */ -interface Authenticator { - /** - * Authenticate a user identified by the given [username] and whose authenticity is confirmed by the given - * [password]. The authentication protocol can read and write data within the underlying connection using [readFun] - * and [writeFun]. - * - * @param username The name the user goes by. - * @param password The confirmation of the user's authenticity. - * @param readFun A function to read incoming data from the underlying connection. - * @param writeFun A function to write outgoing data into the underlying connection. - * @throws except.FailedAuthenticationException if the authentication could not be performed. A human-readable - * reason for the failure can be provided if necessary. - */ - fun authenticate(username: String, password: String, readFun: () -> List, writeFun: (b: List) -> Unit) -} \ No newline at end of file -- cgit v1.2.3