java.lang.Object
org.keycloak.protocol.oid4vc.issuance.credentialoffer.preauth.JwtPreAuthCodeHandler
All Implemented Interfaces:
PreAuthCodeHandler, org.keycloak.provider.Provider

public class JwtPreAuthCodeHandler extends Object implements PreAuthCodeHandler
Implementation of PreAuthCodeHandler for JWT pre-authorized codes.
  • Constructor Details

    • JwtPreAuthCodeHandler

      public JwtPreAuthCodeHandler(org.keycloak.models.KeycloakSession session)
  • Method Details

    • createPreAuthCode

      public String createPreAuthCode(PreAuthCodeCtx preAuthCodeCtx)
      Description copied from interface: PreAuthCodeHandler
      Generates a pre-authorized code for a given context of non-sensitive fields. The implementation is responsible for embedding this context so it is recovered with verification.
      Specified by:
      createPreAuthCode in interface PreAuthCodeHandler
    • verifyPreAuthCode

      public PreAuthCodeCtx verifyPreAuthCode(String preAuthCode) throws org.keycloak.common.VerificationException
      Description copied from interface: PreAuthCodeHandler
      Verifies the given pre-authorized code and returns its associated context if valid.
      Specified by:
      verifyPreAuthCode in interface PreAuthCodeHandler
      Throws:
      org.keycloak.common.VerificationException
    • close

      public void close()
      Specified by:
      close in interface org.keycloak.provider.Provider