diff options
author | Edoardo La Greca | 2025-08-02 19:08:05 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-02 19:08:05 +0200 |
commit | c11decee92748a7c6ea4294b0954438c6cf5d782 (patch) | |
tree | c6108589083136e5a6e5748c8e0c8c9292cfb046 /src/main/kotlin/Authenticator9PAnyV2DP9IK.kt | |
parent | 451f327d034f27aef470abfd67eaa4ea70f1a33c (diff) |
add Authenticator, Authenticator9PAnyV2DP9IK (draft), FailedAuthenticationException
Diffstat (limited to 'src/main/kotlin/Authenticator9PAnyV2DP9IK.kt')
-rw-r--r-- | src/main/kotlin/Authenticator9PAnyV2DP9IK.kt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt b/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt new file mode 100644 index 0000000..ec0710d --- /dev/null +++ b/src/main/kotlin/Authenticator9PAnyV2DP9IK.kt @@ -0,0 +1,12 @@ +/** + * This class (with an ugly ass name) implements the authentication procedure for the p9any meta-protocol version 2, + * hinting at the usage of dp9ik during negotiation and failing if it's unavailable. + * + * The 9P protocol does not provide a default authentication method. However, since NineKt must work with 9front's + * default authenticated 9P service, it must implement the p9any meta-protocol, preferably version 2. + */ +class Authenticator9PAnyV2DP9IK : Authenticator { + override fun authenticate(username: String, password: String, readFun: () -> Array<UByte>, writeFun: (Array<UByte>) -> Unit) { + TODO("Not yet implemented") + } +}
\ No newline at end of file |