Interface PreAuthCodeHandler
- All Superinterfaces:
Provider
- All Known Implementing Classes:
JwtPreAuthCodeHandler
Handles the production and verification of pre-authorized codes.
-
Method Summary
Modifier and TypeMethodDescriptionGenerates 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.
-
Method Details
-
createPreAuthCode
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
Verifies the given pre-authorized code and returns its associated context if valid.- Throws:
VerificationException
-