PresentationResult

sealed class PresentationResult

Result of creating a VerifiablePresentation via the TrustWeave presentation DSL.

Mirrors org.trustweave.credential.results.IssuanceResult / org.trustweave.credential.results.VerificationResult so configuration and validation failures are handled with when instead of exceptions where possible.

Inheritors

Types

Link copied to clipboard

Presentation could not be created.

Link copied to clipboard
data class Success(val presentation: VerifiablePresentation) : PresentationResult

Presentation was created successfully.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Unwrap a successful presentation or throw TrustWeaveException.InvalidState with stable code values (PRESENTATION_ADAPTER_NOT_READY, PRESENTATION_INVALID_REQUEST, PRESENTATION_ADAPTER_ERROR).