Class SdJwtPresentationConsumer

java.lang.Object
org.keycloak.sdjwt.consumer.SdJwtPresentationConsumer

public class SdJwtPresentationConsumer extends Object
A component for consuming (verifying) SD-JWT presentations.

The purpose is to streamline SD-JWT VP verification beyond signature and disclosure checks of SdJwtVerificationContext

Author:
Ingrid Kamga
  • Constructor Details

    • SdJwtPresentationConsumer

      public SdJwtPresentationConsumer()
  • Method Details

    • verifySdJwtPresentation

      public void verifySdJwtPresentation(SdJwtVP sdJwtVP, PresentationRequirements presentationRequirements, List<TrustedSdJwtIssuer> trustedSdJwtIssuers, IssuerSignedJwtVerificationOpts issuerSignedJwtVerificationOpts, KeyBindingJwtVerificationOpts keyBindingJwtVerificationOpts) throws VerificationException
      Verify SD-JWT presentation against specific requirements.
      Parameters:
      sdJwtVP - the presentation to verify
      presentationRequirements - the requirements on presented claims
      trustedSdJwtIssuers - trusted issuers for the verification
      issuerSignedJwtVerificationOpts - policy for Issuer-signed JWT verification
      keyBindingJwtVerificationOpts - policy for Key-binding JWT verification
      Throws:
      VerificationException - if the verification fails for some reason