Package-level declarations

Types

Link copied to clipboard
class ChallengeRequestException(val statusCode: Int = 0, val errorMessage: String? = null, message: String = "Challenge request failed" + (if (statusCode > 0) " (HTTP $statusCode)" else "") + (if (errorMessage != null) ": $errorMessage" else ""), cause: Throwable? = null) : WebAuthException

Exception thrown when requesting a challenge transaction from the server fails.

Link copied to clipboard

Base exception for challenge validation errors.

Link copied to clipboard

Generic challenge validation exception for errors that don't fit specific validation categories.

Link copied to clipboard

Exception thrown when a client_domain operation has an incorrect source account.

Link copied to clipboard

Exception thrown when the first operation's data key doesn't match the expected home domain format.

Link copied to clipboard

Exception thrown when the challenge transaction has an invalid memo type.

Link copied to clipboard

Exception thrown when the challenge transaction memo value doesn't match expected value.

Link copied to clipboard
class InvalidOperationTypeException(operationType: String, operationIndex: Int) : ChallengeValidationException

Exception thrown when the challenge transaction contains operations other than ManageData.

Link copied to clipboard

Exception thrown when the challenge transaction has an invalid sequence number.

Link copied to clipboard

Exception thrown when the challenge transaction doesn't have exactly one signature.

Link copied to clipboard

Exception thrown when the server's signature on the challenge transaction is invalid.

Link copied to clipboard

Exception thrown when the first operation's source account doesn't match the client account.

Link copied to clipboard
class InvalidTimeBoundsException(minTime: Long?, maxTime: Long?, currentTime: Long, gracePeriodSeconds: Int) : ChallengeValidationException

Exception thrown when the challenge transaction's time bounds are invalid.

Link copied to clipboard

Exception thrown when a web_auth_domain operation has an invalid value.

Link copied to clipboard

Exception thrown when a challenge has both a memo and a muxed account (M... address).

Link copied to clipboard
class NoMemoForMuxedAccountsException(message: String = "Muxed accounts (M...) cannot be used with a separate memo parameter. " + "The memo ID is already embedded in the muxed account address.") : WebAuthException

Exception thrown when attempting to use a memo parameter with a muxed account.

Link copied to clipboard
class TokenSubmissionException(message: String, cause: Throwable? = null) : WebAuthException

Exception thrown when submitting a signed challenge to obtain a JWT token fails.

Link copied to clipboard

Base exception for all SEP-10 Web Authentication errors.