sign

fun sign(keyPair: DeviceAuthenticationKeyPair, request: ServerRequest, timestamp: Instant, nonce: RequestNonce = RequestNonce.random()): RequestAuthentication

Authenticates request at timestamp (truncated to milliseconds) with a fresh nonce.