Package-level declarations
Types
Link copied to clipboard
data class AuthenticationResponse( val params: AuthenticationResponseParameters, val clientMetadata: RelyingPartyMetadata?, val jsonWebKeys: Collection<JsonWebKey>?, val mdocGeneratedNonce: String? = null)
Intermediate DTO to hold the parsed clientMetadata as well as the created params.
Link copied to clipboard
Possible outcomes of creating the OIDC Authentication Response
Link copied to clipboard
Link copied to clipboard
@Serializable
Link copied to clipboard
Link copied to clipboard
class OpenId4VpHolder( holder: Holder, agentPublicKey: CryptoPublicKey, jwsService: JwsService, coseService: CoseService, clock: Clock = Clock.System, clientId: String = "https://wallet.a-sit.at/", remoteResourceRetriever: RemoteResourceRetrieverFunction, requestObjectJwsVerifier: RequestObjectJwsVerifier, walletNonceMapStore: MapStore<String, String> = DefaultMapStore())
Combines Verifiable Presentations with OpenId Connect. Implements OpenID for VP (2024-12-02) as well as SIOP V2 (2023-11-28).
Link copied to clipboard
open class OpenId4VpVerifier( clientIdScheme: ClientIdScheme, keyMaterial: KeyMaterial = EphemeralKeyWithoutCert(), val verifier: Verifier = VerifierAgent(identifier = clientIdScheme.clientId), jwsService: JwsService = DefaultJwsService(DefaultCryptoService(keyMaterial)), verifierJwsService: VerifierJwsService = DefaultVerifierJwsService(DefaultVerifierCryptoService()), verifierCoseService: VerifierCoseService = DefaultVerifierCoseService(DefaultVerifierCryptoService()), timeLeewaySeconds: Long = 300, clock: Clock = Clock.System, nonceService: NonceService = DefaultNonceService(), stateToAuthnRequestStore: MapStore<String, AuthenticationRequestParameters> = DefaultMapStore())
Combines Verifiable Presentations with OpenId Connect. Implements OpenID for VP (2024-12-02) as well as SIOP V2 (2023-11-28).
Link copied to clipboard
data class OpenIdRequestOptions( val credentials: Set<RequestOptionsCredential>, val responseMode: OpenIdConstants.ResponseMode = OpenIdConstants.ResponseMode.Fragment, val responseUrl: String? = null, val responseType: String = VP_TOKEN, val state: String = uuid4().toString(), val clientMetadataUrl: String? = null, val encryption: Boolean = false, val presentationMechanism: PresentationMechanismEnum = PresentationMechanismEnum.PresentationExchange, val transactionData: Set<TransactionData>? = null) : RequestOptions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface RequestOptions
Link copied to clipboard
data class RequestOptionsCredential( val credentialScheme: ConstantIndex.CredentialScheme, val representation: ConstantIndex.CredentialRepresentation = CredentialRepresentation.PLAIN_JWT, val requestedAttributes: RequestedAttributes? = null, val requestedOptionalAttributes: RequestedAttributes? = null, val id: String = uuid4().toString())
Link copied to clipboard
class RequestParser( remoteResourceRetriever: RemoteResourceRetrieverFunction = { null }, requestObjectJwsVerifier: RequestObjectJwsVerifier = RequestObjectJwsVerifier { _: Any -> true }, buildRequestObjectParameters: suspend () -> RequestObjectParameters? = { null })
Link copied to clipboard
Parses authentication responses for OpenId4VpVerifier