All Superinterfaces:
Provider
All Known Implementing Classes:
JwtPreAuthCodeHandler

public interface PreAuthCodeHandler extends Provider
Handles the production and verification of pre-authorized codes.
  • Method Details

    • createPreAuthCode

      String createPreAuthCode(PreAuthCodeCtx ctx)
      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.
    • verifyPreAuthCode

      PreAuthCodeCtx verifyPreAuthCode(String preAuthCode) throws VerificationException
      Verifies the given pre-authorized code and returns its associated context if valid.
      Throws:
      VerificationException