Package org.keycloak.authentication
Class AuthenticatorUtil
- java.lang.Object
- 
- org.keycloak.authentication.AuthenticatorUtil
 
- 
 public class AuthenticatorUtil extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCALLBACKS_FACTORY_IDS_NOTE
 - 
Constructor SummaryConstructors Constructor Description AuthenticatorUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>getAuthCallbacksFactoryIds(AuthenticationSessionModel authSession)Get set of Authentication factories IDs defined in authentication session as CALLBACKS_FACTORY_IDS_NOTEstatic List<AuthenticationExecutionModel>getExecutionsByType(RealmModel realm, String flowId, String providerId)static booleanisForcedReauthentication(AuthenticationSessionModel authSession)static booleanisSSOAuthentication(AuthenticationSessionModel authSession)static voidsetAuthCallbacksFactoryIds(AuthenticationSessionModel authSession, String authFactoryId)Set authentication session note for callbacks defined for {@link AuthenticationFlowCallbackFactory) factories
 
- 
- 
- 
Field Detail- 
CALLBACKS_FACTORY_IDS_NOTEpublic static String CALLBACKS_FACTORY_IDS_NOTE 
 
- 
 - 
Method Detail- 
isSSOAuthenticationpublic static boolean isSSOAuthentication(AuthenticationSessionModel authSession) 
 - 
isForcedReauthenticationpublic static boolean isForcedReauthentication(AuthenticationSessionModel authSession) 
 - 
setAuthCallbacksFactoryIdspublic static void setAuthCallbacksFactoryIds(AuthenticationSessionModel authSession, String authFactoryId) Set authentication session note for callbacks defined for {@link AuthenticationFlowCallbackFactory) factories- Parameters:
- authSession- authentication session
- authFactoryId- authentication factory ID which should be added to the authentication session note
 
 - 
getAuthCallbacksFactoryIdspublic static Set<String> getAuthCallbacksFactoryIds(AuthenticationSessionModel authSession) Get set of Authentication factories IDs defined in authentication session as CALLBACKS_FACTORY_IDS_NOTE- Parameters:
- authSession- authentication session
- Returns:
- set of factories IDs
 
 - 
getExecutionsByTypepublic static List<AuthenticationExecutionModel> getExecutionsByType(RealmModel realm, String flowId, String providerId) - Parameters:
- realm-
- flowId-
- providerId-
- Returns:
- all executions of given "provider_id" type. This is deep (recursive) obtain of executions of the particular flow
 
 
- 
 
-