Package org.stellar.walletsdk.auth

Types

Link copied to clipboard
interface AuthHeaderSigner

Header signer to sign JWT for GET /Auth request.

Link copied to clipboard
@Serializable
data class AuthToken(issuer: String, principalAccount: String, issuedAt: Instant, expiresAt: Instant, clientDomain: String?)
Link copied to clipboard
@Serializable
data class ChallengeResponse(transaction: String, networkPassphrase: String)
Link copied to clipboard
open class DefaultAuthHeaderSigner(expiration: Duration) : AuthHeaderSigner

Header signer signing JWT for GET /Auth with a main custodial key

Link copied to clipboard
open class DomainAuthHeaderSigner(url: String, requestTransformer: HttpRequestBuilder.() -> Unit, expiration: Duration) : DefaultAuthHeaderSigner

Auth header signer using remote server to form and sign the JWT. On calling createToken it will send JWTSignData to the specified url, expecting SignedJWT in response.

Link copied to clipboard
class Sep10

Authenticate to an external server using SEP-10.

Link copied to clipboard
interface WalletSigner

Interface to provide wallet signer methods.

Functions

Link copied to clipboard
suspend fun createAuthSignToken(account: AccountKeyPair, webAuthEndpoint: String, parameters: Map<String, String>, clientDomain: String? = null, authHeaderSigner: AuthHeaderSigner? = null): String?