Package org.keycloak.authentication
Class AuthenticatorUtil
- java.lang.Object
-
- org.keycloak.authentication.AuthenticatorUtil
-
public class AuthenticatorUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CALLBACKS_FACTORY_IDS_NOTE
-
Constructor Summary
Constructors Constructor Description AuthenticatorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>
getAuthCallbacksFactoryIds(org.keycloak.sessions.AuthenticationSessionModel authSession)
Get set of Authentication factories IDs defined in authentication session as CALLBACKS_FACTORY_IDS_NOTEstatic List<org.keycloak.models.AuthenticationExecutionModel>
getExecutionsByType(org.keycloak.models.RealmModel realm, String flowId, String providerId)
static boolean
isForcedReauthentication(org.keycloak.sessions.AuthenticationSessionModel authSession)
static boolean
isSSOAuthentication(org.keycloak.sessions.AuthenticationSessionModel authSession)
static void
setAuthCallbacksFactoryIds(org.keycloak.sessions.AuthenticationSessionModel authSession, String authFactoryId)
Set authentication session note for callbacks defined for {@link AuthenticationFlowCallbackFactory) factories
-
-
-
Field Detail
-
CALLBACKS_FACTORY_IDS_NOTE
public static String CALLBACKS_FACTORY_IDS_NOTE
-
-
Method Detail
-
isSSOAuthentication
public static boolean isSSOAuthentication(org.keycloak.sessions.AuthenticationSessionModel authSession)
-
isForcedReauthentication
public static boolean isForcedReauthentication(org.keycloak.sessions.AuthenticationSessionModel authSession)
-
setAuthCallbacksFactoryIds
public static void setAuthCallbacksFactoryIds(org.keycloak.sessions.AuthenticationSessionModel authSession, String authFactoryId)
Set authentication session note for callbacks defined for {@link AuthenticationFlowCallbackFactory) factories- Parameters:
authSession
- authentication sessionauthFactoryId
- authentication factory ID which should be added to the authentication session note
-
getAuthCallbacksFactoryIds
public static Set<String> getAuthCallbacksFactoryIds(org.keycloak.sessions.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
-
getExecutionsByType
public static List<org.keycloak.models.AuthenticationExecutionModel> getExecutionsByType(org.keycloak.models.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
-
-