Package-level declarations

Types

Link copied to clipboard
data class AuthenticatedCiphertext(val ciphertext: ByteArray, val authtag: ByteArray)
Link copied to clipboard
data class ClaimToBeIssued(val name: String, val value: Any)
Link copied to clipboard
Link copied to clipboard
interface CryptoService
Link copied to clipboard
expect object CryptoUtils
actual object CryptoUtils
actual object CryptoUtils
Link copied to clipboard
actual class DefaultCryptoService : CryptoService

Default implementation of a crypto service for iOS.

Link copied to clipboard
data class DefaultEphemeralKeyHolder(val publicKey: SecKeyRef, val privateKey: SecKeyRef? = null) : EphemeralKeyHolder
Link copied to clipboard
actual class DefaultVerifierCryptoService : VerifierCryptoService
Link copied to clipboard
enum Digest : Enum<Digest>
Link copied to clipboard
Link copied to clipboard
class FixedTimeClock(epochMilliseconds: Long) : Clock
Link copied to clipboard
interface Holder

Summarizes operations for a Holder in the sense of the W3C VC Data Model.

Link copied to clipboard
class HolderAgent(validator: Validator = Validator.newDefaultInstance(), subjectCredentialStore: SubjectCredentialStore = InMemorySubjectCredentialStore(), jwsService: JwsService, coseService: CoseService, val identifier: String) : Holder

An agent that only implements Holder, i.e. it can receive credentials form other agents and present credentials to other agents.

Link copied to clipboard
interface Issuer

Summarizes operations for an Issuer in the sense of the W3C VC Data Model.

Link copied to clipboard
class IssuerAgent(validator: Validator, issuerCredentialStore: IssuerCredentialStore = InMemoryIssuerCredentialStore(), revocationListBaseUrl: String = "https://wallet.a-sit.at/backend/credentials/status", dataProvider: IssuerCredentialDataProvider = EmptyCredentialDataProvider, zlibService: ZlibService = DefaultZlibService(), revocationListLifetime: Duration = 48.hours, jwsService: JwsService, coseService: CoseService, clock: Clock = Clock.System, val identifier: String, timePeriodProvider: TimePeriodProvider = FixedTimePeriodProvider) : Issuer

An agent that only implements Issuer, i.e. it issues credentials for other agents.

Link copied to clipboard

Provides data for credentials to be issued.

Link copied to clipboard

Stores all issued credentials, keeps track of the index for the revocation list

Link copied to clipboard
Link copied to clipboard
class Parser(timeLeewaySeconds: Long = 300, epochMillisecondsForValidation: Long? = null)

Parses Verifiable Credentials and Verifiable Presentations. Does not verify the cryptographic authenticity of the data. Does not verify the revocation status of the data.

Link copied to clipboard

Stores all credentials that a subject has received

Link copied to clipboard
Link copied to clipboard
class Validator(verifierJwsService: VerifierJwsService = DefaultVerifierJwsService(DefaultVerifierCryptoService()), verifierCoseService: VerifierCoseService = DefaultVerifierCoseService(DefaultVerifierCryptoService()), parser: Parser = Parser(), zlibService: ZlibService = DefaultZlibService())

Parses and validates Verifiable Credentials and Verifiable Presentations. Does verify the cryptographic authenticity of the data. Does verify the revocation status of the data (when a status information is encoded in the credential).

Link copied to clipboard
interface Verifier

Summarizes operations for a Verifier in the sense of the W3C VC Data Model.

Link copied to clipboard

An agent that only implements Verifier, i.e. it can only verify credentials of other agents.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun NSData.toByteArray(): ByteArray
Link copied to clipboard
inline fun MemScope.toData(array: ByteArray): NSData