mirror of https://github.com/usbharu/Hideout.git
18 lines
434 B
Kotlin
18 lines
434 B
Kotlin
package dev.usbharu.hideout.service.signature
|
|
|
|
import io.ktor.http.*
|
|
|
|
interface HttpSignatureSigner {
|
|
@Suppress("LongParameterList")
|
|
suspend fun sign(
|
|
url: String,
|
|
method: HttpMethod,
|
|
headers: Headers,
|
|
requestBody: String,
|
|
keyPair: Key,
|
|
signHeaders: List<String>
|
|
): SignedRequest
|
|
|
|
suspend fun signRaw(signString: String, keyPair: Key, signHeaders: List<String>): Sign
|
|
}
|