public class OAuth2CodeParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OAuth2CodeParser.ParseResult |
Constructor and Description |
---|
OAuth2CodeParser() |
Modifier and Type | Method and Description |
---|---|
static OAuth2CodeParser.ParseResult |
parseCode(KeycloakSession session,
String code,
RealmModel realm,
EventBuilder event)
Will parse the code and retrieve the corresponding OAuth2Code and AuthenticatedClientSessionModel.
|
static String |
persistCode(KeycloakSession session,
AuthenticatedClientSessionModel clientSession,
OAuth2Code codeData)
Will persist the code to the cache and return the object with the codeData and code correctly set
|
public static String persistCode(KeycloakSession session, AuthenticatedClientSessionModel clientSession, OAuth2Code codeData)
session
- clientSession
- codeData
- public static OAuth2CodeParser.ParseResult parseCode(KeycloakSession session, String code, RealmModel realm, EventBuilder event)
session
- code
- realm
- event
- Copyright © 2019 JBoss by Red Hat. All rights reserved.