Companion
object Companion
Functions
Link copied to clipboard
suspend fun checkNonce(clientId: String, nonce: ByteString, expiration: Instant): RpcNonceAndSession
Validates a client nonce and returns the next nonce and session ID.
Link copied to clipboard
suspend fun validateAndExtractNonceAndSession(assertion: AssertionRpcAuth, target: String, method: String, payload: Bstr, timeout: Duration = 10.minutes): RpcNonceAndSession
Validates an RPC authorization assertion and extracts the nonce and session.
suspend fun validateAndExtractNonceAndSession(assertion: AssertionRpcAuth, target: String, method: String, payload: Bstr, timeout: Duration, nonceChecker: suspend (clientId: String, nonce: ByteString, expiration: Instant) -> RpcNonceAndSession): RpcNonceAndSession
Validates an RPC authorization assertion and extracts the nonce and session using a custom nonce checker.