Class JwtPreAuthCodeHandler
java.lang.Object
org.keycloak.protocol.oid4vc.issuance.credentialoffer.preauth.JwtPreAuthCodeHandler
- All Implemented Interfaces:
PreAuthCodeHandler,Provider
Implementation of
PreAuthCodeHandler for JWT pre-authorized codes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createPreAuthCode(PreAuthCodeCtx preAuthCodeCtx) Generates a pre-authorized code for a given context of non-sensitive fields.verifyPreAuthCode(String preAuthCode) Verifies the given pre-authorized code and returns its associated context if valid.
-
Constructor Details
-
JwtPreAuthCodeHandler
-
-
Method Details
-
createPreAuthCode
Description copied from interface:PreAuthCodeHandlerGenerates 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:
createPreAuthCodein interfacePreAuthCodeHandler
-
verifyPreAuthCode
Description copied from interface:PreAuthCodeHandlerVerifies the given pre-authorized code and returns its associated context if valid.- Specified by:
verifyPreAuthCodein interfacePreAuthCodeHandler- Throws:
VerificationException
-
close
public void close()
-