OidcSiopProtocol

class OidcSiopProtocol(holder: Holder? = null, verifier: Verifier? = null, agentPublicKey: JsonWebKey, jwsService: JwsService, verifierJwsService: VerifierJwsService, relyingPartyChallenge: String = uuid4().toString(), walletUrl: String = "https://wallet.a-sit.at/mobile", relyingPartyUrl: String = "https://wallet.a-sit.at/verifier", timeLeewaySeconds: Long = 300, clock: Clock = Clock.System)

Combines Verifiable Presentations with OpenId Connect Implements OIDC for VP as well as SIOP V2.

The verifier creates the Authentication Request, and the holder creates the Authentication Response.

Constructors

Link copied to clipboard
fun OidcSiopProtocol(holder: Holder? = null, verifier: Verifier? = null, agentPublicKey: JsonWebKey, jwsService: JwsService, verifierJwsService: VerifierJwsService, relyingPartyChallenge: String = uuid4().toString(), walletUrl: String = "https://wallet.a-sit.at/mobile", relyingPartyUrl: String = "https://wallet.a-sit.at/verifier", timeLeewaySeconds: Long = 300, clock: Clock = Clock.System)

Types

Link copied to clipboard
sealed class AuthnResponseResult
Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Creates a OIDC AuthenticationRequest URL to call the Wallet Implementation (acting as SIOP V2)

Link copied to clipboard
suspend fun createAuthnResponse(it: String): String?

Pass in the serialized AuthenticationRequest to create an AuthenticationResponse