Uses of Interface
org.keycloak.models.KeycloakSession
Package
Description
Fine-grained Authorization SPI.
-
Uses of KeycloakSession in org.keycloak.authentication
Modifier and TypeFieldDescriptionprotected KeycloakSession
AuthenticationProcessor.session
protected KeycloakSession
RequiredActionContextResult.session
Modifier and TypeMethodDescriptionAbstractAuthenticationFlowContext.getSession()
Current sessionAuthenticationProcessor.getSession()
AuthenticationProcessor.Result.getSession()
FormContext.getSession()
Current sessionRequiredActionContext.getSession()
RequiredActionContextResult.getSession()
Modifier and TypeMethodDescriptiondefault boolean
Authenticator.areRequiredActionsEnabled
(KeycloakSession session, RealmModel realm) Checks if all required actions are configured in the realm and are enabledstatic ClientSessionContext
AuthenticationProcessor.attachSession
(AuthenticationSessionModel authSession, UserSessionModel userSession, KeycloakSession session, RealmModel realm, ClientConnection connection, EventBuilder event) static AuthenticationSessionModel
AuthenticationProcessor.clone
(KeycloakSession session, AuthenticationSessionModel authSession) boolean
Authenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) Is this authenticator configured for this user.boolean
FormAction.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) Is this FormAction configured for the current user?CredentialValidator.getCredentialProvider
(KeycloakSession session) default List<CredentialModel>
CredentialValidator.getCredentials
(KeycloakSession session, RealmModel realm, UserModel user) default List<RequiredActionFactory>
Authenticator.getRequiredActions
(KeycloakSession session) Overwrite this if the authenticator is associated withdefault String
CredentialValidator.getType
(KeycloakSession session) default void
RequiredActionProvider.initiatedActionCanceled
(KeycloakSession session, AuthenticationSessionModel authSession) Callback to let the action know that an application-initiated action was canceled.void
Authenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) Set actions to configure authenticatorvoid
FormAction.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) Set actions to configure authenticatorAuthenticationProcessor.setSession
(KeycloakSession session) ModifierConstructorDescriptionAuthenticationSelectionOption
(KeycloakSession session, AuthenticationExecutionModel authExec) RequiredActionContextResult
(AuthenticationSessionModel authSession, RealmModel realm, EventBuilder eventBuilder, KeycloakSession session, HttpRequest httpRequest, UserModel user, RequiredActionFactory factory) -
Uses of KeycloakSession in org.keycloak.authentication.actiontoken
Modifier and TypeMethodDescriptionAbstractActionTokenHandler.create
(KeycloakSession session) DefaultActionToken.serialize
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uri) Updates the following fields and serializes this token into a signed JWT.ModifierConstructorDescriptionActionTokenContext
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, HttpRequest request, EventBuilder event, ActionTokenHandler<T> handler, String executionId, ActionTokenContext.ProcessAuthenticateFlow processFlow, ActionTokenContext.ProcessBrokerFlow processBrokerFlow) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators
Modifier and TypeMethodDescriptionboolean
AttemptedAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) void
AttemptedAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.access
Modifier and TypeMethodDescriptionboolean
AllowAccessAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
DenyAccessAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) AllowAccessAuthenticatorFactory.create
(KeycloakSession session) DenyAccessAuthenticatorFactory.create
(KeycloakSession session) void
AllowAccessAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
DenyAccessAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.broker
Modifier and TypeMethodDescriptionboolean
IdpAutoLinkAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
IdpConfirmLinkAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
IdpCreateUserIfUniqueAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
IdpDetectExistingBrokerUserAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
IdpEmailVerificationAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
IdpReviewProfileAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) IdpAutoLinkAuthenticatorFactory.create
(KeycloakSession session) IdpConfirmLinkAuthenticatorFactory.create
(KeycloakSession session) IdpCreateUserIfUniqueAuthenticatorFactory.create
(KeycloakSession session) IdpDetectExistingBrokerUserAuthenticatorFactory.create
(KeycloakSession session) IdpEmailVerificationAuthenticatorFactory.create
(KeycloakSession session) IdpReviewProfileAuthenticatorFactory.create
(KeycloakSession session) IdpUsernamePasswordFormFactory.create
(KeycloakSession session) static UserModel
AbstractIdpAuthenticator.getExistingUser
(KeycloakSession session, RealmModel realm, AuthenticationSessionModel authSession) void
AbstractIdpAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.broker.util
Modifier and TypeMethodDescriptionSerializedBrokeredIdentityContext.deserialize
(KeycloakSession session, AuthenticationSessionModel authSession) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.browser
Modifier and TypeMethodDescriptionboolean
CookieAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
IdentityProviderAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
OTPFormAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
PasswordForm.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
RecoveryAuthnCodesFormAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
ScriptBasedAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
SpnegoAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
UsernamePasswordForm.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
WebAuthnAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) ConditionalOtpFormAuthenticatorFactory.create
(KeycloakSession session) CookieAuthenticatorFactory.create
(KeycloakSession session) DeployedScriptAuthenticatorFactory.create
(KeycloakSession session) IdentityProviderAuthenticatorFactory.create
(KeycloakSession session) OTPFormAuthenticatorFactory.create
(KeycloakSession session) PasswordFormFactory.create
(KeycloakSession session) RecoveryAuthnCodesFormAuthenticatorFactory.create
(KeycloakSession keycloakSession) ScriptBasedAuthenticatorFactory.create
(KeycloakSession session) SpnegoAuthenticatorFactory.create
(KeycloakSession session) UsernameFormFactory.create
(KeycloakSession session) UsernamePasswordFormFactory.create
(KeycloakSession session) WebAuthnAuthenticatorFactory.create
(KeycloakSession session) WebAuthnPasswordlessAuthenticatorFactory.create
(KeycloakSession session) OTPFormAuthenticator.getCredentialProvider
(KeycloakSession session) PasswordForm.getCredentialProvider
(KeycloakSession session) WebAuthnAuthenticator.getCredentialProvider
(KeycloakSession session) WebAuthnPasswordlessAuthenticator.getCredentialProvider
(KeycloakSession session) OTPFormAuthenticator.getRequiredActions
(KeycloakSession session) WebAuthnAuthenticator.getRequiredActions
(KeycloakSession session) WebAuthnPasswordlessAuthenticator.getRequiredActions
(KeycloakSession session) void
ConditionalOtpFormAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
CookieAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
IdentityProviderAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
OTPFormAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
RecoveryAuthnCodesFormAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
ScriptBasedAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
SpnegoAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
UsernamePasswordForm.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
WebAuthnAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
WebAuthnPasswordlessAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) ModifierConstructorDescriptionRecoveryAuthnCodesFormAuthenticator
(KeycloakSession keycloakSession) WebAuthnAuthenticator
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.client
-
Uses of KeycloakSession in org.keycloak.authentication.authenticators.conditional
Modifier and TypeMethodDescriptiondefault boolean
ConditionalAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) default Authenticator
ConditionalAuthenticatorFactory.create
(KeycloakSession session) ConditionalLoaAuthenticatorFactory.create
(KeycloakSession session) void
ConditionalLoaAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
ConditionalRoleAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
ConditionalUserAttributeValue.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
ConditionalUserConfiguredAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.directgrant
Modifier and TypeMethodDescriptionboolean
ValidateOTP.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
ValidatePassword.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
ValidateUsername.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) AbstractDirectGrantAuthenticator.create
(KeycloakSession session) ValidateOTP.getCredentialProvider
(KeycloakSession session) void
ValidateOTP.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
ValidatePassword.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
ValidateUsername.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.resetcred
Modifier and TypeMethodDescriptionboolean
AbstractSetRequiredActionAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
ResetCredentialChooseUser.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
ResetCredentialEmail.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
ResetOTP.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) AbstractSetRequiredActionAuthenticator.create
(KeycloakSession session) ResetCredentialChooseUser.create
(KeycloakSession session) ResetCredentialEmail.create
(KeycloakSession session) ResetOTP.getCredentialProvider
(KeycloakSession session) static Long
ResetCredentialEmail.getLastChangedTimestamp
(KeycloakSession session, RealmModel realm, UserModel user) void
AbstractSetRequiredActionAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
ResetCredentialChooseUser.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
ResetCredentialEmail.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.sessionlimits
Modifier and TypeFieldDescriptionprotected KeycloakSession
UserSessionLimitsAuthenticator.session
Modifier and TypeMethodDescriptionboolean
UserSessionLimitsAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) UserSessionLimitsAuthenticatorFactory.create
(KeycloakSession keycloakSession) void
UserSessionLimitsAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.util
Modifier and TypeMethodDescriptionstatic String
AuthenticatorUtils.getDisabledByBruteForceEventError
(BruteForceProtector protector, KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.authentication.authenticators.x509
Modifier and TypeMethodDescriptionAbstractX509ClientCertificateAuthenticator.certificateValidationParameters
(KeycloakSession session, X509AuthenticatorConfigModel config) boolean
AbstractX509ClientCertificateAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) ValidateX509CertificateUsernameFactory.create
(KeycloakSession session) X509ClientCertificateAuthenticatorFactory.create
(KeycloakSession session) CertificateValidator.CertificateValidatorBuilder.session
(KeycloakSession session) void
AbstractX509ClientCertificateAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) ModifierConstructorDescriptionprotected
CertificateValidator
(X509Certificate[] certChain, int keyUsageBits, List<String> extendedKeyUsage, List<String> certificatePolicy, String certificatePolicyMode, boolean cRLCheckingEnabled, boolean cRLDPCheckingEnabled, CertificateValidator.CRLLoaderImpl crlLoader, boolean oCSPCheckingEnabled, boolean ocspFailOpen, CertificateValidator.OCSPChecker ocspChecker, KeycloakSession session, boolean timestampValidationEnabled, boolean trustValidationEnabled) CRLFileLoader
(KeycloakSession session, String cRLPath) CRLFileLoader
(KeycloakSession session, String cRLPath, CertificateValidator.LdapContext ldapContext) CRLListLoader
(KeycloakSession session, String cRLConfigValue) -
Uses of KeycloakSession in org.keycloak.authentication.forms
Modifier and TypeMethodDescriptionboolean
RegistrationPassword.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
RegistrationProfile.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
RegistrationRecaptcha.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
RegistrationTermsAndConditions.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) boolean
RegistrationUserCreation.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) RegistrationPage.create
(KeycloakSession session) RegistrationPassword.create
(KeycloakSession session) RegistrationProfile.create
(KeycloakSession session) RegistrationRecaptcha.create
(KeycloakSession session) RegistrationTermsAndConditions.create
(KeycloakSession session) RegistrationUserCreation.create
(KeycloakSession session) void
RegistrationPassword.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
RegistrationProfile.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
RegistrationRecaptcha.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
RegistrationTermsAndConditions.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) void
RegistrationUserCreation.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.authentication.otp
Modifier and TypeMethodDescriptionFreeOTPProvider.create
(KeycloakSession session) GoogleAuthenticatorProvider.create
(KeycloakSession session) MicrosoftAuthenticatorOTPProvider.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.authentication.requiredactions
Modifier and TypeMethodDescriptionDeleteAccount.create
(KeycloakSession session) RecoveryAuthnCodesAction.create
(KeycloakSession session) TermsAndConditions.create
(KeycloakSession session) UpdateEmail.create
(KeycloakSession session) UpdatePassword.create
(KeycloakSession session) UpdateProfile.create
(KeycloakSession session) UpdateTotp.create
(KeycloakSession session) UpdateUserLocaleAction.create
(KeycloakSession session) VerifyEmail.create
(KeycloakSession session) VerifyUserProfile.create
(KeycloakSession session) WebAuthnRegisterFactory.create
(KeycloakSession session) protected WebAuthnRegister
WebAuthnPasswordlessRegisterFactory.createProvider
(KeycloakSession session, com.webauthn4j.validator.attestation.trustworthiness.certpath.CertPathTrustworthinessValidator trustValidator) protected WebAuthnRegister
WebAuthnRegisterFactory.createProvider
(KeycloakSession session, com.webauthn4j.validator.attestation.trustworthiness.certpath.CertPathTrustworthinessValidator trustValidator) static UserProfile
UpdateEmail.validateEmailUpdate
(KeycloakSession session, UserModel user, String newEmail) ModifierConstructorDescriptionWebAuthnPasswordlessRegister
(KeycloakSession session, com.webauthn4j.validator.attestation.trustworthiness.certpath.CertPathTrustworthinessValidator certPathtrustValidator) WebAuthnRegister
(KeycloakSession session, com.webauthn4j.validator.attestation.trustworthiness.certpath.CertPathTrustworthinessValidator certPathtrustValidator) -
Uses of KeycloakSession in org.keycloak.authentication.requiredactions.util
Modifier and TypeMethodDescriptionstatic boolean
RequiredActionsValidator.validRequiredActions
(KeycloakSession session, List<String> requiredActions) Validate provided required actions -
Uses of KeycloakSession in org.keycloak.authorization
Modifier and TypeMethodDescriptionAuthorizationProviderFactory.create
(KeycloakSession session, RealmModel realm) DefaultAuthorizationProviderFactory.create
(KeycloakSession session) DefaultAuthorizationProviderFactory.create
(KeycloakSession session, RealmModel realm) ModifierConstructorDescriptionAuthorizationProvider
(KeycloakSession session, RealmModel realm, PolicyEvaluator policyEvaluator) -
Uses of KeycloakSession in org.keycloak.authorization.admin
ModifierConstructorDescriptionAuthorizationService
(KeycloakSession session, ClientModel client, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ResourceSetService
(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ScopeService
(KeycloakSession session, ResourceServer resourceServer, AuthorizationProvider authorization, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Uses of KeycloakSession in org.keycloak.authorization.common
Modifier and TypeFieldDescriptionprotected final KeycloakSession
DefaultEvaluationContext.keycloakSession
protected final KeycloakSession
KeycloakIdentity.keycloakSession
ModifierConstructorDescriptionClientModelIdentity
(KeycloakSession session, ClientModel client) DefaultEvaluationContext
(Identity identity, Map<String, List<String>> claims, KeycloakSession keycloakSession) DefaultEvaluationContext
(Identity identity, KeycloakSession keycloakSession) KeycloakIdentity
(KeycloakSession keycloakSession) KeycloakIdentity
(KeycloakSession keycloakSession, IDToken token) KeycloakIdentity
(AccessToken accessToken, KeycloakSession keycloakSession) KeycloakIdentity
(IDToken token, KeycloakSession keycloakSession, RealmModel realm) -
Uses of KeycloakSession in org.keycloak.authorization.config
Modifier and TypeMethodDescriptionstatic final UmaConfiguration
UmaConfiguration.create
(KeycloakSession session) UmaWellKnownProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.authorization.jpa.store
-
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.aggregated
-
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.client
-
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.clientscope
Modifier and TypeMethodDescriptionClientScopePolicyProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.group
-
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.js
-
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.permission
Modifier and TypeMethodDescriptionResourcePolicyProviderFactory.create
(KeycloakSession session) ScopePolicyProviderFactory.create
(KeycloakSession session) UMAPolicyProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.regex
-
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.role
-
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.time
-
Uses of KeycloakSession in org.keycloak.authorization.policy.provider.user
-
Uses of KeycloakSession in org.keycloak.authorization.protection.introspect
Modifier and TypeMethodDescriptionRPTIntrospectionProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.authorization.protection.resource
ModifierConstructorDescriptionResourceService
(KeycloakSession session, ResourceServer resourceServer, Identity identity, ResourceSetService resourceManager) -
Uses of KeycloakSession in org.keycloak.authorization.util
Modifier and TypeMethodDescriptionstatic AccessToken
Tokens.getAccessToken
(String accessToken, KeycloakSession keycloakSession) static AccessToken
Tokens.getAccessToken
(KeycloakSession keycloakSession) -
Uses of KeycloakSession in org.keycloak.broker.oidc
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractOAuth2IdentityProvider.Endpoint.session
Modifier and TypeMethodDescriptionvoid
OIDCIdentityProvider.backchannelLogout
(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) KeycloakOIDCIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) OIDCIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) protected SimpleHttp
OIDCIdentityProvider.getRefreshTokenRequest
(KeycloakSession session, String refreshToken, String clientId, String clientSecret) jakarta.ws.rs.core.Response
OIDCIdentityProvider.keycloakInitiatedBrowserLogout
(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) KeycloakOIDCIdentityProviderFactory.parseConfig
(KeycloakSession session, InputStream inputStream) OIDCIdentityProviderFactory.parseConfig
(KeycloakSession session, InputStream inputStream) OIDCIdentityProviderFactory.parseOIDCConfig
(KeycloakSession session, InputStream inputStream) void
OIDCIdentityProvider.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, BrokeredIdentityContext context) OIDCIdentityProvider.refreshTokenForLogout
(KeycloakSession session, UserSessionModel userSession) Returns access token response as a string from a refresh token invocation on the remote OIDC brokerjakarta.ws.rs.core.Response
AbstractOAuth2IdentityProvider.retrieveToken
(KeycloakSession session, FederatedIdentityModel identity) ModifierConstructorDescriptionAbstractOAuth2IdentityProvider
(KeycloakSession session, C config) KeycloakOIDCIdentityProvider
(KeycloakSession session, OIDCIdentityProviderConfig config) OIDCIdentityProvider
(KeycloakSession session, OIDCIdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.broker.oidc.mappers
Modifier and TypeMethodDescriptionvoid
AbstractClaimToGroupMapper.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractClaimToRoleMapper.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
ClaimToUserSessionNoteMapper.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractJsonUserAttributeMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UserAttributeMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UsernameTemplateMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractClaimToGroupMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractClaimToRoleMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractJsonUserAttributeMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
ClaimToUserSessionNoteMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UserAttributeMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UsernameTemplateMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractClaimToRoleMapper.updateBrokeredUserLegacy
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractJsonUserAttributeMapper.updateBrokeredUserLegacy
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
ExternalKeycloakRoleToRoleMapper.updateBrokeredUserLegacy
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UsernameTemplateMapper.updateBrokeredUserLegacy
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) -
Uses of KeycloakSession in org.keycloak.broker.provider
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractIdentityProvider.session
Modifier and TypeMethodDescriptionvoid
AbstractIdentityProvider.backchannelLogout
(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) void
IdentityProvider.backchannelLogout
(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) AbstractIdentityProviderFactory.create
(KeycloakSession session) AbstractIdentityProviderMapper.create
(KeycloakSession session) IdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) Creates anIdentityProvider
based on the configuration contained inmodel
.static void
IdentityProviderMapperSyncModeDelegate.delegateUpdateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context, IdentityProviderMapper mapper) void
AbstractIdentityProvider.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, BrokeredIdentityContext context) void
AbstractIdentityProviderMapper.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
HardcodedRoleMapper.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
HardcodedUserSessionAttributeMapper.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
IdentityProvider.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, BrokeredIdentityContext context) void
IdentityProviderMapper.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called after UserModel is created for first time for this user.jakarta.ws.rs.core.Response
AbstractIdentityProvider.keycloakInitiatedBrowserLogout
(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) jakarta.ws.rs.core.Response
IdentityProvider.keycloakInitiatedBrowserLogout
(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) Called when a Keycloak application initiates a logout through the browser.AbstractIdentityProviderFactory.parseConfig
(KeycloakSession session, InputStream inputStream) IdentityProviderFactory.parseConfig
(KeycloakSession session, InputStream inputStream) Creates anIdentityProvider
based on the configuration frominputStream
.void
AbstractIdentityProvider.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, BrokeredIdentityContext context) void
AbstractIdentityProviderMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
HardcodedAttributeMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
HardcodedUserSessionAttributeMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
IdentityProvider.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, BrokeredIdentityContext context) void
IdentityProviderMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called to determine what keycloak username and email to use to process the login request from the external IDP.jakarta.ws.rs.core.Response
IdentityProvider.retrieveToken
(KeycloakSession session, FederatedIdentityModel identity) Returns aResponse
containing the token previously stored during the authentication process for a specific user.void
AbstractIdentityProvider.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, BrokeredIdentityContext context) void
AbstractIdentityProviderMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
HardcodedAttributeMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
HardcodedRoleMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
HardcodedUserSessionAttributeMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
IdentityProvider.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, BrokeredIdentityContext context) void
IdentityProviderMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called when this user has logged in before and has already been imported.void
AbstractIdentityProviderMapper.updateBrokeredUserLegacy
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
HardcodedRoleMapper.updateBrokeredUserLegacy
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
IdentityProviderMapper.updateBrokeredUserLegacy
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called when this user has logged in before and has already been imported.ModifierConstructorDescriptionAbstractIdentityProvider
(KeycloakSession session, C config) AuthenticationRequest
(KeycloakSession session, RealmModel realm, AuthenticationSessionModel authSession, HttpRequest httpRequest, jakarta.ws.rs.core.UriInfo uriInfo, IdentityBrokerState state, String redirectUri) -
Uses of KeycloakSession in org.keycloak.broker.provider.util
Modifier and TypeMethodDescriptionstatic SimpleHttp
SimpleHttp.doDelete
(String url, KeycloakSession session) static SimpleHttp
SimpleHttp.doGet
(String url, KeycloakSession session) static SimpleHttp
SimpleHttp.doPost
(String url, KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.broker.saml
Modifier and TypeMethodDescriptionvoid
SAMLIdentityProvider.backchannelLogout
(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) SAMLIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) jakarta.ws.rs.core.Response
SAMLIdentityProvider.keycloakInitiatedBrowserLogout
(KeycloakSession session, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm) SAMLIdentityProviderFactory.parseConfig
(KeycloakSession session, InputStream inputStream) jakarta.ws.rs.core.Response
SAMLIdentityProvider.retrieveToken
(KeycloakSession session, FederatedIdentityModel identity) ModifierConstructorDescriptionSAMLEndpoint
(KeycloakSession session, SAMLIdentityProvider provider, SAMLIdentityProviderConfig config, IdentityProvider.AuthenticationCallback callback, DestinationValidator destinationValidator) SAMLIdentityProvider
(KeycloakSession session, SAMLIdentityProviderConfig config, DestinationValidator destinationValidator) -
Uses of KeycloakSession in org.keycloak.broker.saml.mappers
Modifier and TypeMethodDescriptionvoid
AbstractAttributeToGroupMapper.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractAttributeToRoleMapper.importNewUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UserAttributeMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UsernameTemplateMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
XPathAttributeMapper.preprocessFederatedIdentity
(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractAttributeToGroupMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
AbstractAttributeToRoleMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UserAttributeMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UsernameTemplateMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
XPathAttributeMapper.updateBrokeredUser
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) void
UsernameTemplateMapper.updateBrokeredUserLegacy
(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) -
Uses of KeycloakSession in org.keycloak.cluster.infinispan
Modifier and TypeMethodDescriptionInfinispanClusterProviderFactory.create
(KeycloakSession session) InfinispanNotificationsManager.create
(KeycloakSession session, org.infinispan.Cache<String, Serializable> workCache, String myAddress, String mySite, Set<org.infinispan.persistence.remote.RemoteStore> remoteStores) protected int
InfinispanClusterProviderFactory.initClusterStartupTime
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.common.util
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
ResponseSessionTask.run
(KeycloakSession session) abstract jakarta.ws.rs.core.Response
ResponseSessionTask.runInternal
(KeycloakSession session) Builds the response that is to be returned.ModifierConstructorDescriptionResponseSessionTask
(KeycloakSession originalSession) Constructs a new instance of this task. -
Uses of KeycloakSession in org.keycloak.component
Modifier and TypeMethodDescriptionAmphibianProviderFactory.create
(KeycloakSession session) default ProviderType
AmphibianProviderFactory.create
(KeycloakSession session, ComponentModel model) Deprecated.default ProviderType
ComponentFactory.create
(KeycloakSession session) ComponentFactory.create
(KeycloakSession session, ComponentModel model) default ComponentFactoryProvider
ComponentFactoryProviderFactory.create
(KeycloakSession session) default void
ComponentFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) Called after a component is createddefault void
AmphibianProviderFactory.onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) default void
ComponentFactory.onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) Called after the component is updated.default void
AmphibianProviderFactory.preRemove
(KeycloakSession session, RealmModel realm, ComponentModel model) default void
ComponentFactory.preRemove
(KeycloakSession session, RealmModel realm, ComponentModel model) Called before the component is removed.default void
ComponentFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) Called before a component is created or updated. -
Uses of KeycloakSession in org.keycloak.connections.httpclient
-
Uses of KeycloakSession in org.keycloak.connections.infinispan
Modifier and TypeMethodDescriptionDefaultInfinispanConnectionProviderFactory.create
(KeycloakSession session) static TopologyInfo
InfinispanUtil.getTopologyInfo
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.connections.jpa
Modifier and TypeMethodDescriptionDefaultJpaConnectionProviderFactory.create
(KeycloakSession session) static jakarta.persistence.EntityManager
PersistenceExceptionConverter.create
(KeycloakSession session, jakarta.persistence.EntityManager em) protected void
DefaultJpaConnectionProviderFactory.export
(Connection connection, String schema, File databaseUpdateFile, KeycloakSession session, JpaUpdaterProvider updater) static jakarta.persistence.EntityManager
JndiEntityManagerLookup.getSessionEntityManager
(KeycloakSession session, String entityManagerFactoryJndiName) void
HibernateStatsReporter.run
(KeycloakSession session) protected void
DefaultJpaConnectionProviderFactory.startGlobalStats
(KeycloakSession session, int globalStatsIntervalSecs) protected void
DefaultJpaConnectionProviderFactory.update
(Connection connection, String schema, KeycloakSession session, JpaUpdaterProvider updater) -
Uses of KeycloakSession in org.keycloak.connections.jpa.updater.liquibase
Modifier and TypeMethodDescriptionstatic KeycloakSession
ThreadLocalSessionContext.getCurrentSession()
Modifier and TypeMethodDescriptionLiquibaseJpaUpdaterProviderFactory.create
(KeycloakSession session) static void
ThreadLocalSessionContext.setCurrentSession
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.connections.jpa.updater.liquibase.conn
Modifier and TypeMethodDescriptionDefaultLiquibaseConnectionProvider.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.connections.jpa.updater.liquibase.custom
-
Uses of KeycloakSession in org.keycloak.connections.jpa.updater.liquibase.lock
ModifierConstructorDescriptionLiquibaseDBLockProvider
(LiquibaseDBLockProviderFactory factory, KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.connections.jpa.util
Modifier and TypeMethodDescriptionstatic jakarta.persistence.EntityManagerFactory
JpaUtils.createEntityManagerFactory
(KeycloakSession session, String unitName, Map<String, Object> properties, boolean jta) JpaUtils.getProvidedEntities
(KeycloakSession session) Get a list of all provided entities by looping over all configured entity providers. -
Uses of KeycloakSession in org.keycloak.credential
Modifier and TypeFieldDescriptionprotected KeycloakSession
OTPCredentialProvider.session
protected final KeycloakSession
PasswordCredentialProvider.session
Modifier and TypeMethodDescriptionprotected KeycloakSession
WebAuthnCredentialProvider.getKeycloakSession()
Modifier and TypeMethodDescriptionUserCredentialStoreManager.authenticate
(KeycloakSession session, RealmModel realm, CredentialInput input) Deprecated.CredentialTypeMetadata.CredentialTypeMetadataBuilder.build
(KeycloakSession session) This will validate metadata and return themCredentialTypeMetadataContext.CredentialTypeMetadataContextBuilder.build
(KeycloakSession session) OTPCredentialProviderFactory.create
(KeycloakSession session) PasswordCredentialProviderFactory.create
(KeycloakSession session) RecoveryAuthnCodesCredentialProviderFactory.create
(KeycloakSession session) WebAuthnCredentialProviderFactory.create
(KeycloakSession session) WebAuthnPasswordlessCredentialProviderFactory.create
(KeycloakSession session) static <T> Stream<T>
UserCredentialStoreManager.getCredentialProviders
(KeycloakSession session, Class<T> type) Deprecated.default T
CredentialProvider.getDefaultCredential
(KeycloakSession session, RealmModel realm, UserModel user) ModifierConstructorDescriptionLegacyUserCredentialManager
(KeycloakSession session, RealmModel realm, UserModel user) OTPCredentialProvider
(KeycloakSession session) Deprecated.WebAuthnCredentialProvider
(KeycloakSession session, com.webauthn4j.converter.util.ObjectConverter objectConverter) WebAuthnPasswordlessCredentialProvider
(KeycloakSession session, com.webauthn4j.converter.util.ObjectConverter objectConverter) -
Uses of KeycloakSession in org.keycloak.credential.hash
Modifier and TypeMethodDescriptionPbkdf2PasswordHashProviderFactory.create
(KeycloakSession session) Pbkdf2Sha256PasswordHashProviderFactory.create
(KeycloakSession session) Pbkdf2Sha512PasswordHashProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.crypto
Modifier and TypeMethodDescriptionAes128CbcHmacSha256ContentEncryptionProviderFactory.create
(KeycloakSession session) Aes128GcmContentEncryptionProviderFactory.create
(KeycloakSession session) Aes192CbcHmacSha384ContentEncryptionProviderFactory.create
(KeycloakSession session) Aes192GcmContentEncryptionProviderFactory.create
(KeycloakSession session) Aes256CbcHmacSha512ContentEncryptionProviderFactory.create
(KeycloakSession session) Aes256GcmContentEncryptionProviderFactory.create
(KeycloakSession session) ES256ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) ES256SignatureProviderFactory.create
(KeycloakSession session) ES384ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) ES384SignatureProviderFactory.create
(KeycloakSession session) ES512ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) ES512SignatureProviderFactory.create
(KeycloakSession session) HS256ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) HS256SignatureProviderFactory.create
(KeycloakSession session) HS384ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) HS384SignatureProviderFactory.create
(KeycloakSession session) HS512ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) HS512SignatureProviderFactory.create
(KeycloakSession session) PS256ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) PS256SignatureProviderFactory.create
(KeycloakSession session) PS384ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) PS384SignatureProviderFactory.create
(KeycloakSession session) PS512ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) PS512SignatureProviderFactory.create
(KeycloakSession session) RS256ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) RS256SignatureProviderFactory.create
(KeycloakSession session) RS384ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) RS384SignatureProviderFactory.create
(KeycloakSession session) RS512ClientSignatureVerifierProviderFactory.create
(KeycloakSession session) RS512SignatureProviderFactory.create
(KeycloakSession session) RsaesOaep256CekManagementProviderFactory.create
(KeycloakSession session) RsaesOaepCekManagementProviderFactory.create
(KeycloakSession session) RsaesPkcs1CekManagementProviderFactory.create
(KeycloakSession session) SHA256HashProviderFactory.create
(KeycloakSession session) SHA384HashProviderFactory.create
(KeycloakSession session) SHA512HashProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionAesCbcHmacShaContentEncryptionProvider
(KeycloakSession session, String jweAlgorithmName) AesGcmContentEncryptionProvider
(KeycloakSession session, String jweAlgorithmName) AsymmetricClientSignatureVerifierProvider
(KeycloakSession session, String algorithm) AsymmetricSignatureProvider
(KeycloakSession session, String algorithm) ClientAsymmetricSignatureVerifierContext
(KeycloakSession session, ClientModel client, JWSInput input) ClientECDSASignatureVerifierContext
(KeycloakSession session, ClientModel client, JWSInput input) ClientMacSignatureVerifierContext
(KeycloakSession session, ClientModel client, String algorithm) ECDSAClientSignatureVerifierProvider
(KeycloakSession session, String algorithm) ECDSASignatureProvider
(KeycloakSession session, String algorithm) MacSecretClientSignatureVerifierProvider
(KeycloakSession session, String algorithm) MacSecretSignatureProvider
(KeycloakSession session, String algorithm) RsaCekManagementProvider
(KeycloakSession session, String jweAlgorithmName) ServerAsymmetricSignatureSignerContext
(KeycloakSession session, String algorithm) ServerAsymmetricSignatureVerifierContext
(KeycloakSession session, String kid, String algorithm) ServerECDSASignatureSignerContext
(KeycloakSession session, String algorithm) ServerECDSASignatureVerifierContext
(KeycloakSession session, String kid, String algorithm) ServerMacSignatureSignerContext
(KeycloakSession session, String algorithm) ServerMacSignatureVerifierContext
(KeycloakSession session, String kid, String algorithm) -
Uses of KeycloakSession in org.keycloak.deployment
Modifier and TypeMethodDescriptionDefaultDeployedConfigurationsProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.device
Modifier and TypeMethodDescriptionstatic void
DeviceActivityManager.attachDevice
(UserSessionModel userSession, KeycloakSession session) Attaches a device to the givenuserSession
where the device information is obtained from theHttpHeaders.USER_AGENT
in the current request, if available.DeviceRepresentationProviderFactoryImpl.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.email
Modifier and TypeMethodDescriptionDefaultEmailSenderProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.email.freemarker
Modifier and TypeFieldDescriptionprotected KeycloakSession
FreeMarkerEmailTemplateProvider.session
Modifier and TypeMethodDescriptionFreeMarkerEmailTemplateProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.encoding
Modifier and TypeMethodDescriptionGzipResourceEncodingProviderFactory.create
(KeycloakSession session) static ResourceEncodingProvider
ResourceEncodingHelper.getResourceEncodingProvider
(KeycloakSession session, String contentType) ModifierConstructorDescriptionGzipResourceEncodingProvider
(KeycloakSession session, File cacheDir) -
Uses of KeycloakSession in org.keycloak.events
ModifierConstructorDescriptionEventBuilder
(RealmModel realm, KeycloakSession session) EventBuilder
(RealmModel realm, KeycloakSession session, ClientConnection clientConnection) -
Uses of KeycloakSession in org.keycloak.events.email
Modifier and TypeMethodDescriptionEmailEventListenerProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionEmailEventListenerProvider
(KeycloakSession session, Set<EventType> includedEvents) -
Uses of KeycloakSession in org.keycloak.events.jpa
Modifier and TypeMethodDescriptionJpaEventStoreProviderFactory.create
(KeycloakSession session) void
JpaEventStoreProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionJpaEventStoreProvider
(KeycloakSession session, jakarta.persistence.EntityManager em, int maxDetailLength, int maxFieldLength) -
Uses of KeycloakSession in org.keycloak.events.log
Modifier and TypeMethodDescriptionJBossLoggingEventListenerProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionJBossLoggingEventListenerProvider
(KeycloakSession session, org.jboss.logging.Logger logger, org.jboss.logging.Logger.Level successLevel, org.jboss.logging.Logger.Level errorLevel) -
Uses of KeycloakSession in org.keycloak.executors
Modifier and TypeMethodDescriptionDefaultExecutorsProviderFactory.create
(KeycloakSession session) protected ExecutorService
DefaultExecutorsProviderFactory.createPoolEmbedded
(String taskType, KeycloakSession session) protected ThreadFactory
DefaultExecutorsProviderFactory.createThreadFactory
(String taskType, KeycloakSession session) protected ExecutorService
DefaultExecutorsProviderFactory.getExecutor
(String taskType, KeycloakSession session) protected ExecutorService
DefaultExecutorsProviderFactory.getPoolManaged
(String taskType, KeycloakSession session) protected ExecutorService
DefaultExecutorsProviderFactory.retrievePool
(String taskType, KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.exportimport
Modifier and TypeMethodDescriptionKeycloakClientDescriptionConverter.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.exportimport.dir
Modifier and TypeMethodDescriptionDirExportProviderFactory.create
(KeycloakSession session) DirImportProviderFactory.create
(KeycloakSession session) protected void
DirExportProvider.writeFederatedUsers
(String fileName, KeycloakSession session, RealmModel realm, List<String> users) protected void
DirExportProvider.writeUsers
(String fileName, KeycloakSession session, RealmModel realm, List<UserModel> users) -
Uses of KeycloakSession in org.keycloak.exportimport.singlefile
Modifier and TypeMethodDescriptionSingleFileExportProviderFactory.create
(KeycloakSession session) SingleFileImportProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.exportimport.util
Modifier and TypeMethodDescriptionstatic ClientRepresentation
ExportUtils.exportClient
(KeycloakSession session, ClientModel client) Full export of application including claims and secretstatic UserRepresentation
ExportUtils.exportFederatedUser
(KeycloakSession session, RealmModel realm, String id, ExportOptions options) Full export of user data stored in federated storage (including role mappings and credentials)static void
ExportUtils.exportFederatedUsersToStream
(KeycloakSession session, RealmModel realm, List<String> usersToExport, com.fasterxml.jackson.databind.ObjectMapper mapper, OutputStream os) static void
ExportUtils.exportFederatedUsersToStream
(KeycloakSession session, RealmModel realm, List<String> usersToExport, com.fasterxml.jackson.databind.ObjectMapper mapper, OutputStream os, ExportOptions options) static RealmRepresentation
ExportUtils.exportRealm
(KeycloakSession session, RealmModel realm, boolean includeUsers, boolean internal) static RealmRepresentation
ExportUtils.exportRealm
(KeycloakSession session, RealmModel realm, ExportOptions options, boolean internal) static UserRepresentation
ExportUtils.exportUser
(KeycloakSession session, RealmModel realm, UserModel user, ExportOptions options, boolean internal) Full export of user (including role mappings and credentials)static void
ExportUtils.exportUsersToStream
(KeycloakSession session, RealmModel realm, List<UserModel> usersToExport, com.fasterxml.jackson.databind.ObjectMapper mapper, OutputStream os) static void
ExportUtils.exportUsersToStream
(KeycloakSession session, RealmModel realm, List<UserModel> usersToExport, com.fasterxml.jackson.databind.ObjectMapper mapper, OutputStream os, ExportOptions options) static void
ImportUtils.importFederatedUsersFromStream
(KeycloakSession session, String realmName, com.fasterxml.jackson.databind.ObjectMapper mapper, InputStream is) static void
ImportUtils.importFromStream
(KeycloakSession session, com.fasterxml.jackson.databind.ObjectMapper mapper, InputStream is, Strategy strategy) Fully import realm (or more realms from particular stream)static boolean
ImportUtils.importRealm
(KeycloakSession session, RealmRepresentation rep, Strategy strategy, boolean skipUserDependent) Fully import realm from representation, save it to model and return model of newly created realmstatic void
ImportUtils.importRealms
(KeycloakSession session, Collection<RealmRepresentation> realms, Strategy strategy) static void
ImportUtils.importUsersFromStream
(KeycloakSession session, String realmName, com.fasterxml.jackson.databind.ObjectMapper mapper, InputStream is) void
ExportImportSessionTask.run
(KeycloakSession session) protected abstract void
ExportImportSessionTask.runExportImportTask
(KeycloakSession session) protected abstract void
MultipleStepsExportProvider.writeFederatedUsers
(String fileName, KeycloakSession session, RealmModel realm, List<String> users) protected abstract void
MultipleStepsExportProvider.writeUsers
(String fileName, KeycloakSession session, RealmModel realm, List<UserModel> users) -
Uses of KeycloakSession in org.keycloak.federation.kerberos
Modifier and TypeMethodDescriptionKerberosFederationProviderFactory.create
(KeycloakSession session, ComponentModel model) void
KerberosFederationProviderFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) void
KerberosFederationProviderFactory.onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) void
KerberosFederationProviderFactory.preRemove
(KeycloakSession session, RealmModel realm, ComponentModel model) ModifierConstructorDescriptionKerberosFederationProvider
(KeycloakSession session, UserStorageProviderModel model, KerberosFederationProviderFactory factory) -
Uses of KeycloakSession in org.keycloak.federation.sssd
Modifier and TypeMethodDescriptionSSSDFederationProviderFactory.create
(KeycloakSession session, ComponentModel model) ModifierConstructorDescriptionSSSDFederationProvider
(KeycloakSession session, UserStorageProviderModel model, SSSDFederationProviderFactory sssdFederationProviderFactory) -
Uses of KeycloakSession in org.keycloak.forms.login.freemarker
Modifier and TypeMethodDescriptionFreeMarkerLoginFormsProviderFactory.create
(KeycloakSession session) static List<IdentityProviderModel>
LoginFormsUtil.filterIdentityProviders
(Stream<IdentityProviderModel> providers, KeycloakSession session, AuthenticationFlowContext context) static List<IdentityProviderModel>
LoginFormsUtil.filterIdentityProvidersForTheme
(Stream<IdentityProviderModel> providers, KeycloakSession session, AuthenticationFlowContext context) ModifierConstructorDescriptionAuthenticatorConfiguredMethod
(RealmModel realm, UserModel user, KeycloakSession session) DetachedInfoStateChecker
(KeycloakSession session, RealmModel realm) -
Uses of KeycloakSession in org.keycloak.forms.login.freemarker.model
Modifier and TypeMethodDescriptionprotected void
AbstractUserProfileBean.init
(KeycloakSession session, boolean writeableOnly) Subclass have to call this method at the end of constructor to init user profile data.ModifierConstructorDescriptionClientBean
(KeycloakSession session, ClientModel client) FrontChannelLogoutBean
(KeycloakSession session) IdentityProviderBean
(RealmModel realm, KeycloakSession session, List<IdentityProviderModel> identityProviders, URI baseURI) IdpReviewProfileBean
(UpdateProfileContext idpCtx, jakarta.ws.rs.core.MultivaluedMap<String, String> formData, KeycloakSession session) RecoveryAuthnCodeInputLoginBean
(KeycloakSession session, RealmModel realm, UserModel user) RegisterBean
(jakarta.ws.rs.core.MultivaluedMap<String, String> formData, KeycloakSession session) TotpBean
(KeycloakSession session, RealmModel realm, UserModel user, jakarta.ws.rs.core.UriBuilder uriBuilder) TotpLoginBean
(KeycloakSession session, RealmModel realm, UserModel user, String selectedCredentialId) VerifyProfileBean
(UserModel user, jakarta.ws.rs.core.MultivaluedMap<String, String> formData, KeycloakSession session) WebAuthnAuthenticatorsBean
(KeycloakSession session, RealmModel realm, UserModel user, String credentialType) -
Uses of KeycloakSession in org.keycloak.headers
Modifier and TypeMethodDescriptionDefaultSecurityHeadersProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.jose.jws
-
Uses of KeycloakSession in org.keycloak.keys
Modifier and TypeMethodDescriptionGeneratedAesKeyProviderFactory.create
(KeycloakSession session, ComponentModel model) GeneratedEcdsaKeyProviderFactory.create
(KeycloakSession session, ComponentModel model) GeneratedHmacKeyProviderFactory.create
(KeycloakSession session, ComponentModel model) GeneratedRsaEncKeyProviderFactory.create
(KeycloakSession session, ComponentModel model) GeneratedRsaKeyProviderFactory.create
(KeycloakSession session, ComponentModel model) ImportedRsaEncKeyProviderFactory.create
(KeycloakSession session, ComponentModel model) ImportedRsaKeyProviderFactory.create
(KeycloakSession session, ComponentModel model) JavaKeystoreKeyProviderFactory.create
(KeycloakSession session, ComponentModel model) KeyProviderFactory.create
(KeycloakSession session, ComponentModel model) boolean
AbstractGeneratedRsaKeyProviderFactory.createFallbackKeys
(KeycloakSession session, KeyUse keyUse, String algorithm) boolean
GeneratedAesKeyProviderFactory.createFallbackKeys
(KeycloakSession session, KeyUse keyUse, String algorithm) boolean
GeneratedEcdsaKeyProviderFactory.createFallbackKeys
(KeycloakSession session, KeyUse keyUse, String algorithm) boolean
GeneratedHmacKeyProviderFactory.createFallbackKeys
(KeycloakSession session, KeyUse keyUse, String algorithm) default boolean
KeyProviderFactory.createFallbackKeys
(KeycloakSession session, KeyUse keyUse, String algorithm) void
AbstractEcdsaKeyProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) void
AbstractGeneratedRsaKeyProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) void
AbstractGeneratedSecretKeyProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) void
AbstractImportedRsaKeyProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) void
AbstractRsaKeyProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) void
GeneratedEcdsaKeyProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) void
JavaKeystoreKeyProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) -
Uses of KeycloakSession in org.keycloak.keys.infinispan
Modifier and TypeMethodDescriptionInfinispanCachePublicKeyProviderFactory.create
(KeycloakSession session) InfinispanPublicKeyStorageProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionInfinispanCachePublicKeyProvider
(KeycloakSession session, org.infinispan.Cache<String, PublicKeysEntry> keys) InfinispanPublicKeyStorageProvider
(KeycloakSession session, org.infinispan.Cache<String, PublicKeysEntry> keys, Map<String, FutureTask<PublicKeysEntry>> tasksInProgress, int minTimeBetweenRequests) -
Uses of KeycloakSession in org.keycloak.keys.loader
Modifier and TypeMethodDescriptionstatic PublicKey
PublicKeyStorageManager.getClientPublicKey
(KeycloakSession session, ClientModel client, JWSInput input) static KeyWrapper
PublicKeyStorageManager.getClientPublicKeyWrapper
(KeycloakSession session, ClientModel client, JWK.Use keyUse, String algAlgorithm) static KeyWrapper
PublicKeyStorageManager.getClientPublicKeyWrapper
(KeycloakSession session, ClientModel client, JWSInput input) static KeyWrapper
PublicKeyStorageManager.getIdentityProviderKeyWrapper
(KeycloakSession session, RealmModel realm, OIDCIdentityProviderConfig idpConfig, JWSInput input) ModifierConstructorDescriptionClientPublicKeyLoader
(KeycloakSession session, ClientModel client) ClientPublicKeyLoader
(KeycloakSession session, ClientModel client, JWK.Use keyUse) OIDCIdentityProviderPublicKeyLoader
(KeycloakSession session, OIDCIdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.locale
Modifier and TypeMethodDescriptionDefaultLocaleSelectorProviderFactory.create
(KeycloakSession session) DefaultLocaleUpdaterProviderFactory.create
(KeycloakSession session) ModifierConstructorDescription -
Uses of KeycloakSession in org.keycloak.migration
Modifier and TypeMethodDescriptionstatic void
MigrationModelManager.migrate
(KeycloakSession session) static void
MigrationModelManager.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) -
Uses of KeycloakSession in org.keycloak.migration.migrators
Modifier and TypeMethodDescriptionvoid
MigrateTo1_2_0.migrate
(KeycloakSession session) void
MigrateTo1_3_0.migrate
(KeycloakSession session) void
MigrateTo1_4_0.migrate
(KeycloakSession session) void
MigrateTo1_5_0.migrate
(KeycloakSession session) void
MigrateTo1_6_0.migrate
(KeycloakSession session) void
MigrateTo1_7_0.migrate
(KeycloakSession session) void
MigrateTo1_8_0.migrate
(KeycloakSession session) void
MigrateTo1_9_0.migrate
(KeycloakSession session) void
MigrateTo1_9_2.migrate
(KeycloakSession session) void
MigrateTo12_0_0.migrate
(KeycloakSession session) void
MigrateTo14_0_0.migrate
(KeycloakSession session) void
MigrateTo18_0_0.migrate
(KeycloakSession session) void
MigrateTo2_0_0.migrate
(KeycloakSession session) void
MigrateTo2_1_0.migrate
(KeycloakSession session) void
MigrateTo2_2_0.migrate
(KeycloakSession session) void
MigrateTo2_3_0.migrate
(KeycloakSession session) void
MigrateTo2_5_0.migrate
(KeycloakSession session) void
MigrateTo20_0_0.migrate
(KeycloakSession session) void
MigrateTo21_0_0.migrate
(KeycloakSession session) void
MigrateTo22_0_0.migrate
(KeycloakSession session) void
MigrateTo3_0_0.migrate
(KeycloakSession session) void
MigrateTo3_1_0.migrate
(KeycloakSession session) void
MigrateTo3_2_0.migrate
(KeycloakSession session) void
MigrateTo3_4_0.migrate
(KeycloakSession session) void
MigrateTo3_4_1.migrate
(KeycloakSession session) void
MigrateTo3_4_2.migrate
(KeycloakSession session) void
MigrateTo4_0_0.migrate
(KeycloakSession session) void
MigrateTo4_2_0.migrate
(KeycloakSession session) void
MigrateTo4_6_0.migrate
(KeycloakSession session) void
MigrateTo6_0_0.migrate
(KeycloakSession session) void
MigrateTo8_0_0.migrate
(KeycloakSession session) void
MigrateTo8_0_2.migrate
(KeycloakSession session) void
MigrateTo9_0_0.migrate
(KeycloakSession session) void
MigrateTo9_0_4.migrate
(KeycloakSession session) void
Migration.migrate
(KeycloakSession session) void
MigrateTo1_2_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo1_3_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo1_4_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo1_5_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo1_6_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo1_7_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo1_8_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo1_9_2.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo18_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo2_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo2_1_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo2_2_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo2_3_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo2_5_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo20_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo21_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo22_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo3_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo3_1_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo3_2_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo3_4_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo3_4_1.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo3_4_2.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo4_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo4_2_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo4_6_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo6_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo8_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo8_0_2.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo9_0_0.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) void
MigrateTo9_0_4.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) default void
Migration.migrateImport
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) Called after full import of representation.static void
MigrationUtils.migrateOldOfflineToken
(KeycloakSession session, RealmModel realm, ClientModel client, UserModel user) protected void
MigrateTo1_4_0.migrateRealm
(KeycloakSession session, RealmModel realm) protected void
MigrateTo1_5_0.migrateRealm
(KeycloakSession session, RealmModel realm) protected void
MigrateTo1_6_0.migrateRealm
(KeycloakSession session, ProtocolMapperModel localeMapper, RealmModel realm) protected void
MigrateTo1_7_0.migrateRealm
(KeycloakSession session, RealmModel realm) protected void
MigrateTo18_0_0.migrateRealm
(KeycloakSession session, RealmModel realm) protected void
MigrateTo3_2_0.migrateRealm
(KeycloakSession session, RealmModel realm) protected void
MigrateTo4_0_0.migrateRealm
(KeycloakSession session, RealmModel realm, boolean json) protected void
MigrateTo4_6_0.migrateRealm
(KeycloakSession session, RealmModel realm, boolean json) protected void
MigrateTo6_0_0.migrateRealm
(KeycloakSession session, RealmModel realm, boolean jsn) -
Uses of KeycloakSession in org.keycloak.models
Modifier and TypeMethodDescriptionKeycloakSessionFactory.create()
ClientModel.ClientIdChangeEvent.getKeycloakSession()
ClientModel.ClientRemovedEvent.getKeycloakSession()
ClientModel.ClientUpdatedEvent.getKeycloakSession()
ClientScopeModel.ClientScopeRemovedEvent.getKeycloakSession()
GroupModel.GroupPathChangeEvent.getKeycloakSession()
GroupModel.GroupRemovedEvent.getKeycloakSession()
RealmModel.IdentityProviderRemovedEvent.getKeycloakSession()
RealmModel.IdentityProviderUpdatedEvent.getKeycloakSession()
RealmModel.RealmCreationEvent.getKeycloakSession()
RealmModel.RealmPostCreateEvent.getKeycloakSession()
RealmModel.RealmRemovedEvent.getKeycloakSession()
RoleContainerModel.RoleRemovedEvent.getKeycloakSession()
RoleModel.RoleNameChangeEvent.getKeycloakSession()
UserModel.UserRemovedEvent.getKeycloakSession()
UserSessionProvider.getKeycloakSession()
Returns currently used Keycloak session.Modifier and TypeMethodDescriptionUserCredentialManager.authenticate
(KeycloakSession session, RealmModel realm, CredentialInput input) Deprecated.Given a CredentialInput, authenticate the user.PasswordPolicy.Builder.build
(KeycloakSession session) DefaultOAuth2DeviceUserCodeProviderFactory.create
(KeycloakSession session) static PasswordPolicy
PasswordPolicy.parse
(KeycloakSession session, String policyString) void
KeycloakSessionTask.run
(KeycloakSession session) KeycloakSessionTaskWithResult.run
(KeycloakSession session) Computes a result.static void
ImpersonationConstants.setupImpersonationService
(KeycloakSession session, RealmModel realm) ModifierConstructorDescriptionKeycloakUriInfo
(KeycloakSession session, UrlType type, jakarta.ws.rs.core.UriInfo delegate) UserManager
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.models.cache
-
Uses of KeycloakSession in org.keycloak.models.cache.infinispan
Modifier and TypeFieldDescriptionprotected final KeycloakSession
GroupAdapter.keycloakSession
protected final KeycloakSession
UserAdapter.keycloakSession
protected KeycloakSession
RealmAdapter.session
protected KeycloakSession
RealmCacheSession.session
protected KeycloakSession
UserCacheSession.session
Modifier and TypeMethodDescriptionInfinispanCacheRealmProviderFactory.create
(KeycloakSession session) InfinispanUserCacheProviderFactory.create
(KeycloakSession session) void
InfinispanUserCacheProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) void
UserCacheSession.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) void
UserCacheSession.onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) void
CacheManager.sendInvalidationEvents
(KeycloakSession session, Collection<InvalidationEvent> invalidationEvents, String eventKey) ModifierConstructorDescriptionGroupAdapter
(CachedGroup cached, RealmCacheSession cacheSession, KeycloakSession keycloakSession, RealmModel realm) RealmAdapter
(KeycloakSession session, CachedRealm cached, RealmCacheSession cacheSession) RealmCacheSession
(RealmCacheManager cache, KeycloakSession session) SubjectCredentialManagerCacheAdapter
(KeycloakSession session, RealmModel realm, UserModel user) UserAdapter
(CachedUser cached, UserCacheSession userProvider, KeycloakSession keycloakSession, RealmModel realm) UserCacheSession
(UserCacheManager cache, KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.models.cache.infinispan.authorization
Modifier and TypeMethodDescriptionInfinispanCacheStoreFactoryProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionStoreFactoryCacheSession
(StoreFactoryCacheManager cache, KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.models.dblock
Modifier and TypeMethodDescriptionDBLockGlobalLockProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionDBLockGlobalLockProvider
(KeycloakSession session, DBLockProvider dbLockProvider) DBLockManager
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.models.delegate
-
Uses of KeycloakSession in org.keycloak.models.jpa
Modifier and TypeFieldDescriptionprotected KeycloakSession
ClientAdapter.session
protected KeycloakSession
ClientScopeAdapter.session
protected KeycloakSession
RealmAdapter.session
protected KeycloakSession
RoleAdapter.session
Modifier and TypeMethodDescriptionJpaClientProviderFactory.create
(KeycloakSession session) JpaClientScopeProviderFactory.create
(KeycloakSession session) JpaDeploymentStateProviderFactory.create
(KeycloakSession session) JpaGroupProviderFactory.create
(KeycloakSession session) JpaRealmProviderFactory.create
(KeycloakSession session) JpaRoleProviderFactory.create
(KeycloakSession session) JpaUserCredentialStoreFactory.create
(KeycloakSession session) JpaUserProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionClientAdapter
(RealmModel realm, jakarta.persistence.EntityManager em, KeycloakSession session, ClientEntity entity) ClientScopeAdapter
(RealmModel realm, jakarta.persistence.EntityManager em, KeycloakSession session, ClientScopeEntity entity) JpaRealmProvider
(KeycloakSession session, jakarta.persistence.EntityManager em, Set<String> clientSearchableAttributes, Set<String> groupSearchableAttributes) JpaUserCredentialStore
(KeycloakSession session, jakarta.persistence.EntityManager em) JpaUserProvider
(KeycloakSession session, jakarta.persistence.EntityManager em) RealmAdapter
(KeycloakSession session, jakarta.persistence.EntityManager em, RealmEntity realm) RoleAdapter
(KeycloakSession session, RealmModel realm, jakarta.persistence.EntityManager em, RoleEntity role) UserAdapter
(KeycloakSession session, RealmModel realm, jakarta.persistence.EntityManager em, UserEntity user) -
Uses of KeycloakSession in org.keycloak.models.jpa.session
Modifier and TypeMethodDescriptionJpaUserSessionPersisterProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionJpaUserSessionPersisterProvider
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.locking
-
Uses of KeycloakSession in org.keycloak.models.map.authorization
Modifier and TypeMethodDescriptionMapAuthorizationStoreFactory.create
(KeycloakSession session) void
MapAuthorizationStoreFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) -
Uses of KeycloakSession in org.keycloak.models.map.authSession
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractRootAuthenticationSessionModel.session
Modifier and TypeMethodDescriptionMapRootAuthenticationSessionProviderFactory.createNew
(KeycloakSession session) ModifierConstructorDescriptionAbstractRootAuthenticationSessionModel
(KeycloakSession session, RealmModel realm, E entity) MapAuthenticationSessionAdapter
(KeycloakSession session, MapRootAuthenticationSessionAdapter parent, String tabId, MapAuthenticationSessionEntity entity) MapRootAuthenticationSessionAdapter
(KeycloakSession session, RealmModel realm, MapRootAuthenticationSessionEntity entity, int authSessionsLimit) MapRootAuthenticationSessionProvider
(KeycloakSession session, MapStorage<MapRootAuthenticationSessionEntity, RootAuthenticationSessionModel> sessionStore, int authSessionsLimit) -
Uses of KeycloakSession in org.keycloak.models.map.client
Modifier and TypeMethodDescriptionMapClientProviderFactory.createNew
(KeycloakSession session) void
MapClientProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionAbstractClientModel
(KeycloakSession session, RealmModel realm, E entity) MapClientAdapter
(KeycloakSession session, RealmModel realm, MapClientEntity entity) MapClientProvider
(KeycloakSession session, MapStorage<MapClientEntity, ClientModel> clientStore, ConcurrentMap<String, ConcurrentMap<String, Long>> clientRegisteredNodesStore) -
Uses of KeycloakSession in org.keycloak.models.map.clientscope
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractClientScopeModel.session
Modifier and TypeMethodDescriptionMapClientScopeProviderFactory.createNew
(KeycloakSession session) void
MapClientScopeProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionAbstractClientScopeModel
(KeycloakSession session, RealmModel realm, E entity) MapClientScopeAdapter
(KeycloakSession session, RealmModel realm, MapClientScopeEntity entity) MapClientScopeProvider
(KeycloakSession session, MapStorage<MapClientScopeEntity, ClientScopeModel> clientScopeStore) -
Uses of KeycloakSession in org.keycloak.models.map.common
Modifier and TypeMethodDescriptionAbstractMapProviderFactory.create
(KeycloakSession session) Returns instance of a provider.static <V extends AbstractEntity & UpdatableEntity,
M, T extends MapStorage<V, M>>
TSessionAttributesUtils.createMapStorageIfAbsent
(KeycloakSession session, Class<? extends MapStorageProvider> providerType, Class<M> modelType, int factoryId, Supplier<T> createNew) Used for creating a store instance only once within one KeycloakSession.abstract T
AbstractMapProviderFactory.createNew
(KeycloakSession session) Creates new instance of a provider.static <T extends Provider>
TSessionAttributesUtils.createProviderIfAbsent
(KeycloakSession session, int factoryIdentifier, Class<T> providerClass, Function<KeycloakSession, T> createNew) Used for creating a provider instance only once within one KeycloakSession.MapStorage<V,
M> AbstractMapProviderFactory.getMapStorage
(KeycloakSession session) static ProviderFactory<MapStorageProvider>
AbstractMapProviderFactory.getProviderFactoryOrComponentFactory
(KeycloakSession session, Config.Scope storageConfigScope) Modifier and TypeMethodDescriptionstatic <T extends Provider>
TSessionAttributesUtils.createProviderIfAbsent
(KeycloakSession session, int factoryIdentifier, Class<T> providerClass, Function<KeycloakSession, T> createNew) Used for creating a provider instance only once within one KeycloakSession. -
Uses of KeycloakSession in org.keycloak.models.map.credential
ModifierConstructorDescriptionMapUserCredentialManager
(KeycloakSession session, RealmModel realm, UserModel user, MapUserEntity entity) -
Uses of KeycloakSession in org.keycloak.models.map.datastore
Modifier and TypeClassDescriptionclass
This implementation ofKeycloakSession
wraps an existing session and directs all calls to the datastore provider to a separateKeycloakSessionFactory
.Modifier and TypeMethodDescriptionMapDatastoreProviderFactory.create
(KeycloakSession session) MapExportImportManager.importAuthenticationFlows
(KeycloakSession session, RealmModel newRealm, RealmRepresentation rep) static void
MapExportImportManager.importRealmAuthorizationSettings
(RealmRepresentation rep, RealmModel newRealm, KeycloakSession session) void
ImportSessionFactoryWrapper.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionImportKeycloakSession
(ImportSessionFactoryWrapper factory, KeycloakSession session) MapDatastoreProvider
(KeycloakSession session) MapExportImportManager
(KeycloakSession session) MapExportImportManager
(KeycloakSession session, boolean useNewImportMethod) -
Uses of KeycloakSession in org.keycloak.models.map.deploymentState
Modifier and TypeMethodDescriptionMapDeploymentStateProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.models.map.events
Modifier and TypeMethodDescriptionMapEventStoreProviderFactory.create
(KeycloakSession session) void
MapEventStoreProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionMapEventStoreProvider
(KeycloakSession session, MapStorage<MapAuthEventEntity, Event> loginEventsStore, MapStorage<MapAdminEventEntity, AdminEvent> adminEventsStore) -
Uses of KeycloakSession in org.keycloak.models.map.group
Modifier and TypeMethodDescriptionMapGroupProviderFactory.createNew
(KeycloakSession session) void
MapGroupProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionAbstractGroupModel
(KeycloakSession session, RealmModel realm, E entity) MapGroupAdapter
(KeycloakSession session, RealmModel realm, MapGroupEntity entity) MapGroupProvider
(KeycloakSession session, MapStorage<MapGroupEntity, GroupModel> groupStore) -
Uses of KeycloakSession in org.keycloak.models.map.keys
Modifier and TypeMethodDescriptionMapPublicKeyStorageProviderFactory.createNew
(KeycloakSession session) ModifierConstructorDescriptionMapPublicKeyStorageProvider
(KeycloakSession session, Map<String, FutureTask<PublicKeysWrapper>> tasksInProgress) -
Uses of KeycloakSession in org.keycloak.models.map.lock
Modifier and TypeMethodDescriptionMapGlobalLockProviderFactory.createNew
(KeycloakSession session) ModifierConstructorDescriptionMapGlobalLockProvider
(KeycloakSession session, long defaultTimeoutMilliseconds, Supplier<MapStorage<MapLockEntity, MapLockEntity>> lockStoreSupplier) -
Uses of KeycloakSession in org.keycloak.models.map.loginFailure
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractUserLoginFailureModel.session
Modifier and TypeMethodDescriptionMapUserLoginFailureProviderFactory.createNew
(KeycloakSession session) void
MapUserLoginFailureProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionAbstractUserLoginFailureModel
(KeycloakSession session, RealmModel realm, E entity) MapUserLoginFailureAdapter
(KeycloakSession session, RealmModel realm, MapUserLoginFailureEntity entity) MapUserLoginFailureProvider
(KeycloakSession session, MapStorage<MapUserLoginFailureEntity, UserLoginFailureModel> userLoginFailureStore) -
Uses of KeycloakSession in org.keycloak.models.map.realm
Modifier and TypeMethodDescriptionMapRealmProviderFactory.createNew
(KeycloakSession session) void
MapRealmProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionAbstractRealmModel
(KeycloakSession session, E entity) MapRealmAdapter
(KeycloakSession session, MapRealmEntity entity) MapRealmProvider
(KeycloakSession session, MapStorage<MapRealmEntity, RealmModel> realmStore) -
Uses of KeycloakSession in org.keycloak.models.map.role
Modifier and TypeMethodDescriptionMapRoleProviderFactory.createNew
(KeycloakSession session) void
MapRoleProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionAbstractRoleModel
(KeycloakSession session, RealmModel realm, E entity) MapRoleAdapter
(KeycloakSession session, RealmModel realm, MapRoleEntity entity) MapRoleProvider
(KeycloakSession session, MapStorage<MapRoleEntity, RoleModel> roleStore) -
Uses of KeycloakSession in org.keycloak.models.map.singleUseObject
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractSingleUseObjectModel.session
Modifier and TypeMethodDescriptionMapSingleUseObjectProviderFactory.createNew
(KeycloakSession session) ModifierConstructorDescriptionAbstractSingleUseObjectModel
(KeycloakSession session, E entity) MapSingleUseObjectAdapter
(KeycloakSession session, MapSingleUseObjectEntity entity) -
Uses of KeycloakSession in org.keycloak.models.map.storage.chm
Modifier and TypeMethodDescriptionConcurrentHashMapStorageProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionConcurrentHashMapStorageProvider
(KeycloakSession session, ConcurrentHashMapStorageProviderFactory factory, int factoryId) -
Uses of KeycloakSession in org.keycloak.models.map.storage.file
ModifierConstructorDescriptionFileMapStorageProvider
(KeycloakSession session, FileMapStorageProviderFactory factory, int factoryId) -
Uses of KeycloakSession in org.keycloak.models.map.storage.hotRod
Modifier and TypeMethodDescriptionHotRodMapStorageProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionHotRodCrudOperations
(KeycloakSession session, org.infinispan.client.hotrod.RemoteCache<K, E> remoteCache, StringKeyConverter<K> keyConverter, HotRodEntityDescriptor<E, V> storedEntityDescriptor, DeepCloner cloner, Long lockTimeout) HotRodMapStorageProvider
(KeycloakSession session, HotRodMapStorageProviderFactory factory, boolean jtaEnabled, long lockTimeout) SingleUseObjectHotRodCrudOperations
(KeycloakSession session, org.infinispan.client.hotrod.RemoteCache<String, HotRodSingleUseObjectEntity> remoteCache, StringKeyConverter<String> keyConverter, HotRodEntityDescriptor<HotRodSingleUseObjectEntity, HotRodSingleUseObjectEntityDelegate> storedEntityDescriptor, DeepCloner cloner, Long lockTimeout) -
Uses of KeycloakSession in org.keycloak.models.map.storage.hotRod.connections
Modifier and TypeMethodDescriptionDefaultHotRodConnectionProviderFactory.create
(KeycloakSession session) void
DefaultHotRodConnectionProviderFactory.lazyInit
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.models.map.storage.hotRod.locking
Modifier and TypeMethodDescriptionHotRodGlobalLockProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionHotRodGlobalLockProvider
(KeycloakSession session, org.infinispan.client.hotrod.RemoteCache<String, String> locksCache, long defaultTimeoutMilliseconds) -
Uses of KeycloakSession in org.keycloak.models.map.storage.hotRod.transaction
-
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa
Modifier and TypeMethodDescriptionJpaMapStorageProviderFactory.create
(KeycloakSession session) static jakarta.persistence.EntityManager
PersistenceExceptionConverter.create
(KeycloakSession session, jakarta.persistence.EntityManager em) JpaMapStorageProviderFactory.createMapStorage
(KeycloakSession session, Class<?> modelType, jakarta.persistence.EntityManager em) void
JpaMapStorageProviderFactory.validateAndUpdateSchema
(KeycloakSession session, Class<?> modelType) ModifierConstructorDescriptionJpaMapStorage
(KeycloakSession session, Class<RE> entityType, Class<M> modelType, jakarta.persistence.EntityManager em) JpaMapStorageProvider
(JpaMapStorageProviderFactory factory, KeycloakSession session, jakarta.persistence.EntityManager em, boolean jtaEnabled, int factoryId) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.authorization.permission
ModifierConstructorDescriptionJpaPermissionMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.authorization.policy
ModifierConstructorDescriptionJpaPolicyMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.authorization.resource
ModifierConstructorDescriptionJpaResourceMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.authorization.resourceServer
ModifierConstructorDescriptionJpaResourceServerMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.authorization.scope
ModifierConstructorDescriptionJpaScopeMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.authSession
ModifierConstructorDescriptionJpaRootAuthenticationSessionMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.client
ModifierConstructorDescriptionJpaClientMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.clientScope
ModifierConstructorDescriptionJpaClientScopeMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.event.admin
ModifierConstructorDescriptionJpaAdminEventMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.event.auth
ModifierConstructorDescriptionJpaAuthEventMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.group
ModifierConstructorDescriptionJpaGroupMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.liquibase.connection
Modifier and TypeMethodDescriptionDefaultLiquibaseConnectionProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.liquibase.updater
Modifier and TypeMethodDescriptionMapJpaLiquibaseUpdaterProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.lock
ModifierConstructorDescriptionJpaLockMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.loginFailure
ModifierConstructorDescriptionJpaUserLoginFailureMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.realm
ModifierConstructorDescriptionJpaRealmMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.role
ModifierConstructorDescriptionJpaRoleMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.singleUseObject
ModifierConstructorDescriptionJpaSingleUseObjectMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.user
ModifierConstructorDescriptionJpaUserMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.jpa.userSession
ModifierConstructorDescriptionJpaUserSessionMapStorage
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.models.map.storage.ldap
Modifier and TypeMethodDescriptionLdapMapStorageProviderFactory.create
(KeycloakSession session) <M,
V extends AbstractEntity>
MapStorage<V,M> LdapMapStorageProviderFactory.createMapStorage
(KeycloakSession session, Class<M> modelType) ModifierConstructorDescriptionLdapMapStorageProvider
(KeycloakSession session, LdapMapStorageProviderFactory factory, int factoryId) -
Uses of KeycloakSession in org.keycloak.models.map.storage.ldap.role
-
Uses of KeycloakSession in org.keycloak.models.map.storage.ldap.store
Modifier and TypeMethodDescriptionstatic LdapMapContextManager
LdapMapContextManager.create
(KeycloakSession session, LdapMapConfig connectionProperties) ModifierConstructorDescriptionLdapMapContextManager
(KeycloakSession session, LdapMapConfig connectionProperties) LdapMapIdentityStore
(KeycloakSession session, LdapMapConfig config) LdapMapOperationManager
(KeycloakSession session, LdapMapConfig config) -
Uses of KeycloakSession in org.keycloak.models.map.storage.tree
Modifier and TypeMethodDescription<V extends AbstractEntity>
TreeStorageNodeInstance<V>TreeStorageNodePrescription.instantiate
(KeycloakSession session) ModifierConstructorDescriptionTreeStorageNodeInstance
(KeycloakSession session, TreeStorageNodeInstance<V> original) TreeStorageNodeInstance
(KeycloakSession session, TreeStorageNodePrescription prescription) -
Uses of KeycloakSession in org.keycloak.models.map.user
Modifier and TypeMethodDescriptionMapUserProviderFactory.createNew
(KeycloakSession session) static <T> Stream<T>
MapUserProvider.getCredentialProviders
(KeycloakSession session, Class<T> type) void
MapUserProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionAbstractUserModel
(KeycloakSession session, RealmModel realm, E entity) MapUserAdapter
(KeycloakSession session, RealmModel realm, MapUserEntity entity) MapUserProvider
(KeycloakSession session, MapStorage<MapUserEntity, UserModel> store) -
Uses of KeycloakSession in org.keycloak.models.map.userSession
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractAuthenticatedClientSessionModel.session
protected final KeycloakSession
AbstractUserSessionModel.session
Modifier and TypeMethodDescriptionMapUserSessionProviderFactory.createNew
(KeycloakSession session) void
MapUserSessionProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) ModifierConstructorDescriptionAbstractAuthenticatedClientSessionModel
(KeycloakSession session, RealmModel realm, UserSessionModel userSession, MapAuthenticatedClientSessionEntity entity) AbstractUserSessionModel
(KeycloakSession session, RealmModel realm, MapUserSessionEntity entity) MapAuthenticatedClientSessionAdapter
(KeycloakSession session, RealmModel realm, UserSessionModel userSession, MapAuthenticatedClientSessionEntity entity) MapUserSessionAdapter
(KeycloakSession session, RealmModel realm, UserModel userModel, MapUserSessionEntity entity) MapUserSessionProvider
(KeycloakSession session, MapStorage<MapUserSessionEntity, UserSessionModel> userSessionStore) -
Uses of KeycloakSession in org.keycloak.models.session
Modifier and TypeMethodDescriptionDisabledUserSessionPersisterProvider.create
(KeycloakSession session) ModifierConstructorDescriptionPersistentAuthenticatedClientSessionAdapter
(KeycloakSession session, AuthenticatedClientSessionModel clientSession) PersistentAuthenticatedClientSessionAdapter
(KeycloakSession session, PersistentClientSessionModel model, RealmModel realm, ClientModel client, UserSessionModel userSession) PersistentUserSessionAdapter
(KeycloakSession session, PersistentUserSessionModel model, RealmModel realm, String userId, Map<String, AuthenticatedClientSessionModel> clientSessions) -
Uses of KeycloakSession in org.keycloak.models.sessions.infinispan
Modifier and TypeFieldDescriptionprotected final KeycloakSession
InfinispanUserLoginFailureProvider.session
protected final KeycloakSession
InfinispanUserSessionProvider.session
Modifier and TypeMethodDescriptionprotected void
InfinispanUserLoginFailureProviderFactory.checkRemoteCaches
(KeycloakSession session) protected void
InfinispanUserSessionProviderFactory.checkRemoteCaches
(KeycloakSession session) InfinispanAuthenticationSessionProviderFactory.create
(KeycloakSession session) InfinispanSingleUseObjectProviderFactory.create
(KeycloakSession session) InfinispanStickySessionEncoderProviderFactory.create
(KeycloakSession session) InfinispanUserLoginFailureProviderFactory.create
(KeycloakSession session) InfinispanUserSessionProviderFactory.create
(KeycloakSession session) protected void
InfinispanAuthenticationSessionProviderFactory.registerClusterListeners
(KeycloakSession session) protected void
InfinispanUserLoginFailureProviderFactory.registerClusterListeners
(KeycloakSession session) protected void
InfinispanUserSessionProviderFactory.registerClusterListeners
(KeycloakSession session) ModifierConstructorDescriptionAuthenticatedClientSessionAdapter
(KeycloakSession kcSession, InfinispanUserSessionProvider provider, AuthenticatedClientSessionEntity entity, ClientModel client, UserSessionModel userSession, InfinispanChangelogBasedTransaction<UUID, AuthenticatedClientSessionEntity> clientSessionUpdateTx, boolean offline) AuthenticationSessionAdapter
(KeycloakSession session, RootAuthenticationSessionAdapter parent, String tabId, AuthenticationSessionEntity entity) InfinispanAuthenticationSessionProvider
(KeycloakSession session, InfinispanKeyGenerator keyGenerator, org.infinispan.Cache<String, RootAuthenticationSessionEntity> cache, int authSessionsLimit) InfinispanSingleUseObjectProvider
(KeycloakSession session, Supplier<org.infinispan.commons.api.BasicCache<String, SingleUseObjectValueEntity>> singleUseObjectCache) InfinispanStickySessionEncoderProvider
(KeycloakSession session, boolean shouldAttachRoute) InfinispanUserLoginFailureProvider
(KeycloakSession session, RemoteCacheInvoker remoteCacheInvoker, org.infinispan.Cache<LoginFailureKey, SessionEntityWrapper<LoginFailureEntity>> loginFailureCache) InfinispanUserSessionProvider
(KeycloakSession session, RemoteCacheInvoker remoteCacheInvoker, CrossDCLastSessionRefreshStore lastSessionRefreshStore, CrossDCLastSessionRefreshStore offlineLastSessionRefreshStore, PersisterLastSessionRefreshStore persisterLastSessionRefreshStore, InfinispanKeyGenerator keyGenerator, org.infinispan.Cache<String, SessionEntityWrapper<UserSessionEntity>> sessionCache, org.infinispan.Cache<String, SessionEntityWrapper<UserSessionEntity>> offlineSessionCache, org.infinispan.Cache<UUID, SessionEntityWrapper<AuthenticatedClientSessionEntity>> clientSessionCache, org.infinispan.Cache<UUID, SessionEntityWrapper<AuthenticatedClientSessionEntity>> offlineClientSessionCache, boolean loadOfflineSessionsFromDatabase) RootAuthenticationSessionAdapter
(KeycloakSession session, InfinispanAuthenticationSessionProvider provider, org.infinispan.Cache<String, RootAuthenticationSessionEntity> cache, RealmModel realm, RootAuthenticationSessionEntity entity, int authSessionsLimt) UserSessionAdapter
(KeycloakSession session, UserModel user, InfinispanUserSessionProvider provider, InfinispanChangelogBasedTransaction<String, UserSessionEntity> userSessionUpdateTx, InfinispanChangelogBasedTransaction<UUID, AuthenticatedClientSessionEntity> clientSessionUpdateTx, RealmModel realm, UserSessionEntity entity, boolean offline) -
Uses of KeycloakSession in org.keycloak.models.sessions.infinispan.changes
ModifierConstructorDescriptionInfinispanChangelogBasedTransaction
(KeycloakSession kcSession, org.infinispan.Cache<K, SessionEntityWrapper<V>> cache, RemoteCacheInvoker remoteCacheInvoker, SessionFunction<V> lifespanMsLoader, SessionFunction<V> maxIdleTimeMsLoader) -
Uses of KeycloakSession in org.keycloak.models.sessions.infinispan.changes.sessions
Modifier and TypeMethodDescriptionCrossDCLastSessionRefreshStoreFactory.createAndInit
(KeycloakSession kcSession, org.infinispan.Cache<String, SessionEntityWrapper<UserSessionEntity>> cache, boolean offline) CrossDCLastSessionRefreshStoreFactory.createAndInit
(KeycloakSession kcSession, org.infinispan.Cache<String, SessionEntityWrapper<UserSessionEntity>> cache, long timerIntervalMs, int maxIntervalBetweenMessagesSeconds, int maxCount, boolean offline) PersisterLastSessionRefreshStoreFactory.createAndInit
(KeycloakSession kcSession, boolean offline) void
AbstractLastSessionRefreshStore.putLastSessionRefresh
(KeycloakSession kcSession, String sessionId, String realmId, int lastSessionRefresh) protected abstract void
AbstractLastSessionRefreshStore.sendMessage
(KeycloakSession kcSession, Map<String, SessionData> refreshesToSend) Bulk update the underlying store with all the user sessions, which were refreshed by Keycloak since the last call of this methodprotected void
CrossDCLastSessionRefreshStore.sendMessage
(KeycloakSession kcSession, Map<String, SessionData> refreshesToSend) protected void
PersisterLastSessionRefreshStore.sendMessage
(KeycloakSession kcSession, Map<String, SessionData> refreshesToSend) protected void
AbstractLastSessionRefreshStoreFactory.setupPeriodicTimer
(KeycloakSession kcSession, AbstractLastSessionRefreshStore store, long timerIntervalMs, String eventKey) CrossDCLastSessionRefreshChecker.shouldSaveClientSessionToRemoteCache
(KeycloakSession kcSession, RealmModel realm, SessionEntityWrapper<AuthenticatedClientSessionEntity> sessionWrapper, UserSessionModel userSession, boolean offline, int newTimestamp) CrossDCLastSessionRefreshChecker.shouldSaveUserSessionToRemoteCache
(KeycloakSession kcSession, RealmModel realm, SessionEntityWrapper<UserSessionEntity> sessionWrapper, boolean offline, int newLastSessionRefresh) ModifierConstructorDescriptionCrossDCLastSessionRefreshListener
(KeycloakSession session, org.infinispan.Cache<String, SessionEntityWrapper<UserSessionEntity>> cache, boolean offline) -
Uses of KeycloakSession in org.keycloak.models.sessions.infinispan.events
Modifier and TypeMethodDescriptionstatic ClientRemovedSessionEvent
ClientRemovedSessionEvent.create
(KeycloakSession session, String eventKey, String realmId, boolean resendingEvent, String clientUuid) static <T extends SessionClusterEvent>
TSessionClusterEvent.createEvent
(Class<T> eventClass, String eventKey, KeycloakSession session, String realmId, boolean resendingEvent) protected abstract void
AbstractAuthSessionClusterListener.eventReceived
(KeycloakSession session, InfinispanAuthenticationSessionProvider provider, SE sessionEvent) protected abstract void
AbstractUserSessionClusterListener.eventReceived
(KeycloakSession session, T provider, SE sessionEvent) -
Uses of KeycloakSession in org.keycloak.models.sessions.infinispan.initializer
Modifier and TypeMethodDescriptionOfflinePersistentUserSessionLoader.computeLoaderContext
(KeycloakSession session) SessionLoader.computeLoaderContext
(KeycloakSession session) Will be triggered just once on cluster coordinator node to count the number of segments and other context data specific to whole computation.void
OfflinePersistentUserSessionLoader.init
(KeycloakSession session) void
SessionLoader.init
(KeycloakSession session) Will be triggered just once on cluster coordinator node to perform some generic initialization tasks (Eg.OfflinePersistentUserSessionLoader.loadSessions
(KeycloakSession session, OfflinePersistentLoaderContext loaderContext, OfflinePersistentWorkerContext ctx) SessionLoader.loadSessions
(KeycloakSession session, LOADER_CONTEXT loaderContext, WORKER_CONTEXT workerContext) Will be called on all cluster nodes to load the specified page.ModifierConstructorDescriptionDBLockBasedCacheInitializer
(KeycloakSession session, CacheInitializer delegate) -
Uses of KeycloakSession in org.keycloak.models.sessions.infinispan.remotestore
Modifier and TypeMethodDescriptionRemoteCacheSessionsLoader.computeLoaderContext
(KeycloakSession session) static <K,
V extends SessionEntity>
RemoteCacheSessionListenerRemoteCacheSessionListener.createListener
(KeycloakSession session, org.infinispan.Cache<K, SessionEntityWrapper<V>> cache, org.infinispan.client.hotrod.RemoteCache<K, SessionEntityWrapper<V>> remoteCache, SessionFunction<V> lifespanMsLoader, SessionFunction<V> maxIdleTimeMsLoader) protected org.infinispan.Cache
RemoteCacheSessionsLoader.getCache
(KeycloakSession session) protected org.infinispan.client.hotrod.RemoteCache
RemoteCacheSessionsLoader.getRemoteCache
(KeycloakSession session) protected void
RemoteCacheSessionListener.init
(KeycloakSession session, org.infinispan.Cache<K, SessionEntityWrapper<V>> cache, org.infinispan.client.hotrod.RemoteCache<K, SessionEntityWrapper<V>> remoteCache, SessionFunction<V> lifespanMsLoader, SessionFunction<V> maxIdleTimeMsLoader) void
RemoteCacheSessionsLoader.init
(KeycloakSession session) RemoteCacheSessionsLoader.loadSessions
(KeycloakSession session, RemoteCacheSessionsLoaderContext loaderContext, SessionLoader.WorkerContext ctx) <K,
V extends SessionEntity>
voidRemoteCacheInvoker.runTask
(KeycloakSession kcSession, RealmModel realm, String cacheName, K key, MergedUpdate<V> task, SessionEntityWrapper<V> sessionWrapper) -
Uses of KeycloakSession in org.keycloak.models.sessions.infinispan.util
Modifier and TypeMethodDescriptionInfinispanKeyGenerator.generateKeyString
(KeycloakSession session, org.infinispan.Cache<String, ?> cache) InfinispanKeyGenerator.generateKeyUUID
(KeycloakSession session, org.infinispan.Cache<UUID, ?> cache) -
Uses of KeycloakSession in org.keycloak.models.utils
Modifier and TypeMethodDescriptionstatic void
KeycloakModelUtils.cloneContextRealmClientSessionToSession
(KeycloakContext origContext, KeycloakSession targetSession) Sets up the context for the specified session with the RealmModel, clientModel and AuthenticatedSessionModel.static void
KeycloakModelUtils.cloneContextRealmClientToSession
(KeycloakContext origContext, KeycloakSession targetSession) Sets up the context for the specified session with the RealmModel.static ClientModel
RepresentationToModel.createClient
(KeycloakSession session, RealmModel realm, ClientRepresentation resourceRep) Does not create scope or role mappings!static ClientModel
RepresentationToModel.createClient
(KeycloakSession session, RealmModel realm, ClientRepresentation resourceRep, Map<String, String> mappedFlows) static ClientScopeModel
RepresentationToModel.createClientScope
(KeycloakSession session, RealmModel realm, ClientScopeRepresentation resourceRep) static void
RepresentationToModel.createCredentials
(UserRepresentation userRep, KeycloakSession session, RealmModel realm, UserModel user, boolean adminRequest) static void
DefaultClientScopes.createDefaultClientScopes
(KeycloakSession session, RealmModel realm, boolean addScopesToExistingClients) static void
RepresentationToModel.createFederatedIdentities
(UserRepresentation userRep, KeycloakSession session, RealmModel realm, UserModel user) static ResourceServer
RepresentationToModel.createResourceServer
(ClientModel client, KeycloakSession session, boolean addDefaultRoles) static UserModel
RepresentationToModel.createUser
(KeycloakSession session, RealmModel newRealm, UserRepresentation userRep) static void
ModelToRepresentation.exportAuthenticationFlows
(KeycloakSession session, RealmModel realm, RealmRepresentation rep) static UserModel
KeycloakModelUtils.findUserByNameOrEmail
(KeycloakSession session, RealmModel realm, String username) Try to find user by username or email for authenticationstatic Map<String,
ProviderConfigProperty> ComponentUtil.getComponentConfigProperties
(KeycloakSession session, String providerType, String providerId) static Map<String,
ProviderConfigProperty> ComponentUtil.getComponentConfigProperties
(KeycloakSession session, ComponentModel component) static Map<String,
ProviderConfigProperty> ComponentUtil.getComponentConfigProperties
(KeycloakSession session, ComponentRepresentation component) static ComponentFactory
ComponentUtil.getComponentFactory
(KeycloakSession session, ComponentModel component) static ComponentFactory
ComponentUtil.getComponentFactory
(KeycloakSession session, ComponentRepresentation component) static String
KeycloakModelUtils.getIdentityProviderDisplayName
(KeycloakSession session, IdentityProviderModel provider) static void
RepresentationToModel.importAuthorizationSettings
(ClientRepresentation clientRepresentation, ClientModel client, KeycloakSession session) static void
RepresentationToModel.importRealm
(KeycloakSession session, RealmRepresentation rep, RealmModel newRealm, boolean skipUserDependent) static boolean
KeycloakModelUtils.isRealmProviderJpa
(KeycloakSession session) static void
ComponentUtil.notifyCreated
(KeycloakSession session, RealmModel realm, ComponentModel model) static void
ComponentUtil.notifyPreRemove
(KeycloakSession session, RealmModel realm, ComponentModel model) static void
ComponentUtil.notifyUpdated
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) static Stream<GroupRepresentation>
ModelToRepresentation.searchForGroupByName
(KeycloakSession session, RealmModel realm, boolean full, String search, Boolean exact, Integer first, Integer max) static Stream<GroupModel>
ModelToRepresentation.searchForGroupModelByName
(KeycloakSession session, RealmModel realm, boolean full, String search, Boolean exact, Integer first, Integer max) static Stream<GroupModel>
ModelToRepresentation.searchGroupModelsByAttributes
(KeycloakSession session, RealmModel realm, boolean full, boolean populateHierarchy, Map<String, String> attributes, Integer first, Integer max) static Stream<GroupRepresentation>
ModelToRepresentation.searchGroupsByAttributes
(KeycloakSession session, RealmModel realm, boolean full, boolean populateHierarchy, Map<String, String> attributes, Integer first, Integer max) StripSecretsUtils.strip
(KeycloakSession session, String providerType, ComponentExportRepresentation rep) static ComponentRepresentation
StripSecretsUtils.strip
(KeycloakSession session, ComponentRepresentation rep) static void
StripSecretsUtils.stripForExport
(KeycloakSession session, RealmRepresentation rep) static AuthenticationExecutionModel
RepresentationToModel.toModel
(KeycloakSession session, RealmModel realm, AuthenticationExecutionRepresentation rep) static ComponentModel
RepresentationToModel.toModel
(KeycloakSession session, ComponentRepresentation rep) static IdentityProviderModel
RepresentationToModel.toModel
(RealmModel realm, IdentityProviderRepresentation representation, KeycloakSession session) static ClientRepresentation
ModelToRepresentation.toRepresentation
(ClientModel clientModel, KeycloakSession session) static ComponentRepresentation
ModelToRepresentation.toRepresentation
(KeycloakSession session, ComponentModel component, boolean internal) static RealmRepresentation
ModelToRepresentation.toRepresentation
(KeycloakSession session, RealmModel realm, boolean internal) ModelToRepresentation.toRepresentation
(KeycloakSession session, RealmModel realm, AuthenticationExecutionModel model) ModelToRepresentation.toRepresentation
(KeycloakSession session, RealmModel realm, AuthenticationFlowModel model) static UserRepresentation
ModelToRepresentation.toRepresentation
(KeycloakSession session, RealmModel realm, UserModel user) static ResourceServerRepresentation
ModelToRepresentation.toResourceServerRepresentation
(KeycloakSession session, ClientModel client) static void
RepresentationToModel.updateClient
(ClientRepresentation rep, ClientModel resource, KeycloakSession session) static void
RepresentationToModel.updateComponent
(KeycloakSession session, ComponentRepresentation rep, ComponentModel component, boolean internal) static void
RepresentationToModel.updateRealm
(RealmRepresentation rep, RealmModel realm, KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.partialimport
Modifier and TypeMethodDescriptionabstract void
AbstractPartialImport.create
(RealmModel realm, KeycloakSession session, T resourceRep) void
ClientsPartialImport.create
(RealmModel realm, KeycloakSession session, ClientRepresentation clientRep) void
GroupsPartialImport.create
(RealmModel realm, KeycloakSession session, GroupRepresentation groupRep) void
IdentityProviderMappersPartialImport.create
(RealmModel realm, KeycloakSession session, IdentityProviderMapperRepresentation idpMapperRep) void
IdentityProvidersPartialImport.create
(RealmModel realm, KeycloakSession session, IdentityProviderRepresentation idpRep) void
RealmRolesPartialImport.create
(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep) void
UsersPartialImport.create
(RealmModel realm, KeycloakSession session, UserRepresentation user) AbstractPartialImport.doImport
(PartialImportRepresentation partialImportRep, RealmModel realm, KeycloakSession session) PartialImport.doImport
(PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) Create (or re-create) all the imported resources.RolesPartialImport.doImport
(PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) abstract boolean
AbstractPartialImport.exists
(RealmModel realm, KeycloakSession session, T resourceRep) boolean
ClientRolesPartialImport.exists
(RealmModel realm, KeycloakSession session, String clientId, RoleRepresentation roleRep) boolean
ClientsPartialImport.exists
(RealmModel realm, KeycloakSession session, ClientRepresentation clientRep) boolean
GroupsPartialImport.exists
(RealmModel realm, KeycloakSession session, GroupRepresentation groupRep) boolean
IdentityProviderMappersPartialImport.exists
(RealmModel realm, KeycloakSession session, IdentityProviderMapperRepresentation idpMapperRep) boolean
IdentityProvidersPartialImport.exists
(RealmModel realm, KeycloakSession session, IdentityProviderRepresentation idpRep) boolean
RealmRolesPartialImport.exists
(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep) boolean
UsersPartialImport.exists
(RealmModel realm, KeycloakSession session, UserRepresentation user) abstract String
AbstractPartialImport.getModelId
(RealmModel realm, KeycloakSession session, T resourceRep) ClientsPartialImport.getModelId
(RealmModel realm, KeycloakSession session, ClientRepresentation clientRep) GroupsPartialImport.getModelId
(RealmModel realm, KeycloakSession session, GroupRepresentation groupRep) IdentityProviderMappersPartialImport.getModelId
(RealmModel realm, KeycloakSession session, IdentityProviderMapperRepresentation idpMapperRep) IdentityProvidersPartialImport.getModelId
(RealmModel realm, KeycloakSession session, IdentityProviderRepresentation idpRep) RealmRolesPartialImport.getModelId
(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep) UsersPartialImport.getModelId
(RealmModel realm, KeycloakSession session, UserRepresentation user) void
AbstractPartialImport.prepare
(PartialImportRepresentation partialImportRep, RealmModel realm, KeycloakSession session) void
ClientRolesPartialImport.prepare
(PartialImportRepresentation partialImportRep, RealmModel realm, KeycloakSession session) void
PartialImport.prepare
(PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) Find which resources will need to be skipped or overwritten.void
RolesPartialImport.prepare
(PartialImportRepresentation rep, RealmModel realm, KeycloakSession session) abstract void
AbstractPartialImport.remove
(RealmModel realm, KeycloakSession session, T resourceRep) void
ClientsPartialImport.remove
(RealmModel realm, KeycloakSession session, ClientRepresentation clientRep) void
GroupsPartialImport.remove
(RealmModel realm, KeycloakSession session, GroupRepresentation groupRep) void
IdentityProviderMappersPartialImport.remove
(RealmModel realm, KeycloakSession session, IdentityProviderMapperRepresentation idpMapperRep) void
IdentityProvidersPartialImport.remove
(RealmModel realm, KeycloakSession session, IdentityProviderRepresentation idpRep) void
RealmRolesPartialImport.remove
(RealmModel realm, KeycloakSession session, RoleRepresentation roleRep) void
UsersPartialImport.remove
(RealmModel realm, KeycloakSession session, UserRepresentation user) void
AbstractPartialImport.removeOverwrites
(RealmModel realm, KeycloakSession session) void
PartialImport.removeOverwrites
(RealmModel realm, KeycloakSession session) Delete resources that will be overwritten.void
RolesPartialImport.removeOverwrites
(RealmModel realm, KeycloakSession session) ModifierConstructorDescriptionPartialImportManager
(PartialImportRepresentation rep, KeycloakSession session, RealmModel realm) -
Uses of KeycloakSession in org.keycloak.policy
Modifier and TypeMethodDescriptionBlacklistPasswordPolicyProviderFactory.create
(KeycloakSession session) DefaultPasswordPolicyManagerProviderFactory.create
(KeycloakSession session) DigitsPasswordPolicyProviderFactory.create
(KeycloakSession session) ForceExpiredPasswordPolicyProviderFactory.create
(KeycloakSession session) HashAlgorithmPasswordPolicyProviderFactory.create
(KeycloakSession session) HashIterationsPasswordPolicyProviderFactory.create
(KeycloakSession session) HistoryPasswordPolicyProviderFactory.create
(KeycloakSession session) LengthPasswordPolicyProviderFactory.create
(KeycloakSession session) LowerCasePasswordPolicyProviderFactory.create
(KeycloakSession session) MaximumLengthPasswordPolicyProviderFactory.create
(KeycloakSession session) NotEmailPasswordPolicyProviderFactory.create
(KeycloakSession session) NotUsernamePasswordPolicyProviderFactory.create
(KeycloakSession session) RecoveryCodesWarningThresholdPasswordPolicyProviderFactory.create
(KeycloakSession session) RegexPatternsPasswordPolicyProviderFactory.create
(KeycloakSession session) SpecialCharsPasswordPolicyProviderFactory.create
(KeycloakSession session) UpperCasePasswordPolicyProviderFactory.create
(KeycloakSession session) ModifierConstructorDescription -
Uses of KeycloakSession in org.keycloak.protocol
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AuthorizationEndpointBase.session
Modifier and TypeMethodDescriptionLoginProtocolFactory.createProtocolEndpoint
(KeycloakSession session, EventBuilder event) static void
RestartLoginCookie.expireRestartCookie
(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session) static ProtocolMapperModel
ProtocolMapperUtils.findLocaleMapper
(KeycloakSession session) Find the builtin locale mapper.jakarta.ws.rs.core.Response
ClientInstallationProvider.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI serverBaseUri) static jakarta.ws.rs.core.Cookie
RestartLoginCookie.getRestartCookie
(KeycloakSession session) static Stream<Map.Entry<ProtocolMapperModel,
ProtocolMapper>> ProtocolMapperUtils.getSortedProtocolMappers
(KeycloakSession session, ClientSessionContext ctx) static Stream<Map.Entry<ProtocolMapperModel,
ProtocolMapper>> ProtocolMapperUtils.getSortedProtocolMappers
(KeycloakSession session, ClientSessionContext ctx, Predicate<Map.Entry<ProtocolMapperModel, ProtocolMapper>> filter) static boolean
ProtocolMapperUtils.isEnabled
(KeycloakSession session, ProtocolMapperModel mapper) static AuthenticationSessionModel
RestartLoginCookie.restartSession
(KeycloakSession session, RealmModel realm, RootAuthenticationSessionModel rootSession, String expectedClientId, jakarta.ws.rs.core.Cookie cook) static void
RestartLoginCookie.setRestartCookie
(KeycloakSession session, RealmModel realm, ClientConnection connection, jakarta.ws.rs.core.UriInfo uriInfo, AuthenticationSessionModel authSession) LoginProtocol.setSession
(KeycloakSession session) default void
ProtocolMapper.validateConfig
(KeycloakSession session, RealmModel realm, ProtocolMapperContainerModel client, ProtocolMapperModel mapperModel) Called when instance of mapperModel is created/updated for this protocolMapper through admin endpointModifierConstructorDescriptionAuthorizationEndpointBase
(KeycloakSession session, EventBuilder event) -
Uses of KeycloakSession in org.keycloak.protocol.docker
Modifier and TypeMethodDescriptionboolean
DockerAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) DockerAuthenticatorFactory.create
(KeycloakSession session) DockerAuthV2ProtocolFactory.create
(KeycloakSession session) DockerAuthV2ProtocolFactory.createProtocolEndpoint
(KeycloakSession session, EventBuilder event) DockerAuthV2Protocol.setSession
(KeycloakSession session) ModifierConstructorDescriptionDockerAuthV2Protocol
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.HttpHeaders headers, EventBuilder event) DockerEndpoint
(KeycloakSession session, EventBuilder event, EventType login) DockerV2LoginProtocolService
(KeycloakSession session, EventBuilder event) -
Uses of KeycloakSession in org.keycloak.protocol.docker.installation
Modifier and TypeMethodDescriptionDockerComposeYamlInstallationProvider.create
(KeycloakSession session) DockerRegistryConfigFileInstallationProvider.create
(KeycloakSession session) DockerVariableOverrideInstallationProvider.create
(KeycloakSession session) jakarta.ws.rs.core.Response
DockerComposeYamlInstallationProvider.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI serverBaseUri) jakarta.ws.rs.core.Response
DockerRegistryConfigFileInstallationProvider.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI serverBaseUri) jakarta.ws.rs.core.Response
DockerVariableOverrideInstallationProvider.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI serverBaseUri) -
Uses of KeycloakSession in org.keycloak.protocol.docker.mapper
Modifier and TypeMethodDescriptionfinal ProtocolMapper
DockerAuthV2ProtocolMapper.create
(KeycloakSession session) AllowAllDockerProtocolMapper.transformDockerResponseToken
(DockerResponseToken responseToken, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) DockerAuthV2AttributeMapper.transformDockerResponseToken
(DockerResponseToken responseToken, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) -
Uses of KeycloakSession in org.keycloak.protocol.oidc
Modifier and TypeMethodDescriptionstatic ClientSessionContext
TokenManager.attachAuthenticationSession
(KeycloakSession session, UserSessionModel userSession, AuthenticationSessionModel authSession) boolean
TokenManager.checkTokenValidForIntrospection
(KeycloakSession session, RealmModel realm, AccessToken token, boolean updateTimestamps) Checks if the token is valid.AccessTokenIntrospectionProviderFactory.create
(KeycloakSession session) DefaultTokenExchangeProviderFactory.create
(KeycloakSession session) OIDCClientDescriptionConverterFactory.create
(KeycloakSession session) OIDCLoginProtocolFactory.create
(KeycloakSession session) OIDCWellKnownProviderFactory.create
(KeycloakSession session) RefreshTokenIntrospectionProviderFactory.create
(KeycloakSession session) TokenManager.createClientAccessToken
(KeycloakSession session, RealmModel realm, ClientModel client, UserModel user, UserSessionModel userSession, ClientSessionContext clientSessionCtx) OIDCLoginProtocolFactory.createProtocolEndpoint
(KeycloakSession session, EventBuilder event) static FrontChannelLogoutHandler
FrontChannelLogoutHandler.current
(KeycloakSession session) static FrontChannelLogoutHandler
FrontChannelLogoutHandler.currentOrCreate
(KeycloakSession session, AuthenticatedClientSessionModel clientSession) static TokenManager.NotBeforeCheck
TokenManager.NotBeforeCheck.forModel
(KeycloakSession session, RealmModel realmModel, UserModel userModel) TokenManager.getValidOIDCIdentityProvidersForBackchannelLogout
(RealmModel realm, KeycloakSession session, String encodedLogoutToken, LogoutToken logoutToken) static UserModel
TokenManager.lookupUserFromStatelessToken
(KeycloakSession session, RealmModel realm, AccessToken token) Lookup user from the "stateless" token.TokenManager.refreshAccessToken
(KeycloakSession session, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, RealmModel realm, ClientModel authorizedClient, String encodedRefreshToken, EventBuilder event, jakarta.ws.rs.core.HttpHeaders headers, HttpRequest request) TokenManager.responseBuilder
(RealmModel realm, ClientModel client, EventBuilder event, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) OIDCLoginProtocol.setSession
(KeycloakSession session) TokenManager.toRefreshToken
(KeycloakSession session, String encodedRefreshToken) TokenManager.transformAccessToken
(KeycloakSession session, AccessToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenManager.transformAccessTokenResponse
(KeycloakSession session, AccessTokenResponse accessTokenResponse, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenManager.transformIDToken
(KeycloakSession session, IDToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenManager.transformUserInfoAccessToken
(KeycloakSession session, AccessToken token, UserSessionModel userSession, ClientSessionContext clientSessionCtx) TokenManager.validateToken
(KeycloakSession session, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, RealmModel realm, RefreshToken oldToken, jakarta.ws.rs.core.HttpHeaders headers) static boolean
TokenManager.verifyConsentStillAvailable
(KeycloakSession session, UserModel user, ClientModel client, Stream<ClientScopeModel> requestedClientScopes) TokenManager.verifyIDToken
(KeycloakSession session, RealmModel realm, String encodedIDToken) TokenManager.verifyIDTokenSignature
(KeycloakSession session, String encodedIDToken) TokenManager.verifyLogoutToken
(KeycloakSession session, RealmModel realm, String encodedLogoutToken) TokenManager.verifyRefreshToken
(KeycloakSession session, RealmModel realm, ClientModel client, HttpRequest request, String encodedRefreshToken, boolean checkExpiration) ModifierConstructorDescriptionAccessTokenResponseBuilder
(RealmModel realm, ClientModel client, EventBuilder event, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) OIDCLoginProtocol
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.HttpHeaders headers, EventBuilder event) OIDCLoginProtocolService
(KeycloakSession session, EventBuilder event, OIDCProviderConfig providerConfig) OIDCWellKnownProvider
(KeycloakSession session) OIDCWellKnownProvider
(KeycloakSession session, Map<String, Object> openidConfigOverride, boolean includeClientScopes) TokenExchangeContext
(KeycloakSession session, jakarta.ws.rs.core.MultivaluedMap<String, String> formParams, Object cors, RealmModel realm, EventBuilder event, ClientModel client, ClientConnection clientConnection, jakarta.ws.rs.core.HttpHeaders headers, Object tokenManager, Map<String, String> clientAuthAttributes) TokenRevocationCheck
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.endpoints
Modifier and TypeMethodDescriptionstatic jakarta.ws.rs.core.Response
IframeUtil.returnIframeFromResources
(String fileName, String version, KeycloakSession session) AuthorizationEndpointChecker.session
(KeycloakSession session) ModifierConstructorDescriptionAuthorizationEndpoint
(KeycloakSession session, EventBuilder event) LoginStatusIframeEndpoint
(KeycloakSession session) LogoutEndpoint
(KeycloakSession session, TokenManager tokenManager, EventBuilder event, OIDCProviderConfig providerConfig) TokenEndpoint
(KeycloakSession session, TokenManager tokenManager, EventBuilder event) TokenIntrospectionEndpoint
(KeycloakSession session, EventBuilder event) TokenRevocationEndpoint
(KeycloakSession session, EventBuilder event) UserInfoEndpoint
(KeycloakSession session, TokenManager tokenManager) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.endpoints.request
Modifier and TypeMethodDescriptionstatic String
AuthorizationEndpointRequestParserProcessor.getClientId
(EventBuilder event, KeycloakSession session, jakarta.ws.rs.core.MultivaluedMap<String, String> requestParams) static AuthorizationEndpointRequest
AuthorizationEndpointRequestParserProcessor.parseRequest
(EventBuilder event, KeycloakSession session, ClientModel client, jakarta.ws.rs.core.MultivaluedMap<String, String> requestParams, AuthorizationEndpointRequestParserProcessor.EndpointType endpointType) ModifierConstructorDescriptionAuthzEndpointRequestObjectParser
(KeycloakSession session, String requestObject, ClientModel client) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.grants.ciba
ModifierConstructorDescriptionCibaGrantType
(jakarta.ws.rs.core.MultivaluedMap<String, String> formParams, ClientModel client, KeycloakSession session, TokenEndpoint tokenEndpoint, RealmModel realm, EventBuilder event, Cors cors) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.grants.ciba.channel
Modifier and TypeFieldDescriptionprotected KeycloakSession
HttpAuthenticationChannelProvider.session
Modifier and TypeMethodDescriptionHttpAuthenticationChannelProviderFactory.create
(KeycloakSession session) static CIBAAuthenticationRequest
CIBAAuthenticationRequest.deserialize
(KeycloakSession session, String jwe) Deserialize the givenjwe
to aCIBAAuthenticationRequest
instance.CIBAAuthenticationRequest.serialize
(KeycloakSession session) Serializes this instance to a JWE.ModifierConstructorDescriptionCIBAAuthenticationRequest
(KeycloakSession session, UserModel user, ClientModel client) HttpAuthenticationChannelProvider
(KeycloakSession session, String httpAuthenticationRequestUri) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.grants.ciba.clientpolicy.executor
Modifier and TypeMethodDescriptionSecureCibaAuthenticationRequestSigningAlgorithmExecutorFactory.create
(KeycloakSession session) SecureCibaSessionEnforceExecutorFactory.create
(KeycloakSession session) SecureCibaSignedAuthenticationRequestExecutorFactory.create
(KeycloakSession session) ModifierConstructorDescription -
Uses of KeycloakSession in org.keycloak.protocol.oidc.grants.ciba.endpoints
ModifierConstructorDescriptionAbstractCibaEndpoint
(KeycloakSession session, EventBuilder event) BackchannelAuthenticationCallbackEndpoint
(KeycloakSession session, EventBuilder event) BackchannelAuthenticationEndpoint
(KeycloakSession session, EventBuilder event) CibaRootEndpoint
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.grants.ciba.endpoints.request
Modifier and TypeMethodDescriptionBackchannelAuthenticationEndpointRequestParserProcessor.parseRequest
(EventBuilder event, KeycloakSession session, ClientModel client, jakarta.ws.rs.core.MultivaluedMap<String, String> requestParams, CibaConfig config) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.grants.ciba.resolvers
Modifier and TypeMethodDescriptionDefaultCIBALoginUserResolverFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.grants.device
Modifier and TypeMethodDescriptionstatic jakarta.ws.rs.core.Response
DeviceGrantType.approveOAuth2DeviceAuthorization
(AuthenticationSessionModel authSession, AuthenticatedClientSessionModel clientSession, KeycloakSession session) static boolean
DeviceGrantType.approveUserCode
(KeycloakSession session, RealmModel realm, String userCode, String userSessionId, Map<String, String> additionalParams) static jakarta.ws.rs.core.Response
DeviceGrantType.denyOAuth2DeviceAuthorization
(AuthenticationSessionModel authSession, LoginProtocol.Error error, KeycloakSession session) static boolean
DeviceGrantType.denyUserCode
(KeycloakSession session, RealmModel realm, String userCode) static OAuth2DeviceCodeModel
DeviceGrantType.getDeviceByDeviceCode
(KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, String deviceCode) static boolean
DeviceGrantType.isPollingAllowed
(KeycloakSession session, OAuth2DeviceCodeModel deviceCodeModel) static void
DeviceGrantType.removeDeviceByDeviceCode
(KeycloakSession session, String deviceCode) static void
DeviceGrantType.removeDeviceByUserCode
(KeycloakSession session, RealmModel realm, String userCode) ModifierConstructorDescriptionDeviceGrantType
(jakarta.ws.rs.core.MultivaluedMap<String, String> formParams, ClientModel client, KeycloakSession session, TokenEndpoint tokenEndpoint, RealmModel realm, EventBuilder event, Cors cors) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.grants.device.endpoints
Modifier and TypeMethodDescriptionDeviceEndpointFactory.create
(KeycloakSession session) static OAuth2DeviceCodeModel
DeviceEndpoint.getDeviceByUserCode
(KeycloakSession session, RealmModel realm, String userCode) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.installation
Modifier and TypeMethodDescriptionKeycloakOIDCClientInstallation.create
(KeycloakSession session) KeycloakOIDCJbossSubsystemClientCliInstallation.create
(KeycloakSession session) KeycloakOIDCJbossSubsystemClientInstallation.create
(KeycloakSession session) jakarta.ws.rs.core.Response
KeycloakOIDCClientInstallation.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri) jakarta.ws.rs.core.Response
KeycloakOIDCJbossSubsystemClientCliInstallation.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri) jakarta.ws.rs.core.Response
KeycloakOIDCJbossSubsystemClientInstallation.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri) KeycloakOIDCClientInstallation.getClientCredentialsAdapterConfig
(KeycloakSession session, ClientModel client) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.mappers
Modifier and TypeMethodDescriptionfinal ProtocolMapper
AbstractOIDCProtocolMapper.create
(KeycloakSession session) protected void
AbstractOIDCProtocolMapper.setClaim
(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) Intended to be overridden inProtocolMapper
implementations to add claims to an token.protected void
AbstractOIDCProtocolMapper.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) Intended to be overridden inProtocolMapper
implementations to add claims to an token.protected void
AcrProtocolMapper.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected void
AudienceProtocolMapper.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected void
ClaimsParameterTokenMapper.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected void
ClaimsParameterWithValueIdTokenMapper.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected void
HardcodedClaim.setClaim
(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected void
HardcodedRole.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx) protected void
RoleNameMapper.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx) protected void
ScriptBasedOIDCProtocolMapper.setClaim
(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected void
ScriptBasedOIDCProtocolMapper.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) protected void
UserClientRoleMappingMapper.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx) protected void
UserRealmRoleMappingMapper.setClaim
(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession session, ClientSessionContext clientSessionCtx) protected void
UserSessionNoteMapper.setClaim
(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) AbstractOIDCProtocolMapper.transformAccessToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractPairwiseSubMapper.transformAccessToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AllowedWebOriginsProtocolMapper.transformAccessToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AudienceResolveProtocolMapper.transformAccessToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) HardcodedRole.transformAccessToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) OIDCAccessTokenMapper.transformAccessToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) RoleNameMapper.transformAccessToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractOIDCProtocolMapper.transformAccessTokenResponse
(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) OIDCAccessTokenResponseMapper.transformAccessTokenResponse
(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractOIDCProtocolMapper.transformIDToken
(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractPairwiseSubMapper.transformIDToken
(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) OIDCIDTokenMapper.transformIDToken
(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSession) AbstractOIDCProtocolMapper.transformUserInfoToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) AbstractPairwiseSubMapper.transformUserInfoToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) HardcodedRole.transformUserInfoToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) RoleNameMapper.transformUserInfoToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) UserInfoTokenMapper.transformUserInfoToken
(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) void
AbstractPairwiseSubMapper.validateAdditionalConfig
(KeycloakSession session, RealmModel realm, ProtocolMapperContainerModel mapperContainer, ProtocolMapperModel mapperModel) Override to add additional configuration validation.void
SHA256PairwiseSubMapper.validateAdditionalConfig
(KeycloakSession session, RealmModel realm, ProtocolMapperContainerModel mapperContainer, ProtocolMapperModel mapperModel) final void
AbstractPairwiseSubMapper.validateConfig
(KeycloakSession session, RealmModel realm, ProtocolMapperContainerModel mapperContainer, ProtocolMapperModel mapperModel) void
ScriptBasedOIDCProtocolMapper.validateConfig
(KeycloakSession session, RealmModel realm, ProtocolMapperContainerModel client, ProtocolMapperModel mapperModel) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.par.endpoints
ModifierConstructorDescriptionAbstractParEndpoint
(KeycloakSession session, EventBuilder event) ParEndpoint
(KeycloakSession session, EventBuilder event) ParRootEndpoint
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.par.endpoints.request
Modifier and TypeMethodDescriptionstatic AuthorizationEndpointRequest
ParEndpointRequestParserProcessor.parseRequest
(EventBuilder event, KeycloakSession session, ClientModel client, jakarta.ws.rs.core.MultivaluedMap<String, String> requestParams) ModifierConstructorDescriptionAuthzEndpointParParser
(KeycloakSession session, ClientModel client, String requestUri) ParEndpointRequestObjectParser
(KeycloakSession session, String requestObject, ClientModel client) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.rar.parsers
Modifier and TypeMethodDescriptionClientScopeAuthorizationRequestParserProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.protocol.oidc.utils
Modifier and TypeMethodDescriptionAuthorizeClientUtil.authorizeClient
(KeycloakSession session, EventBuilder event, Cors cors) static ClientAuthenticatorFactory
AuthorizeClientUtil.findClientAuthenticatorForOIDCAuthMethod
(KeycloakSession session, String oidcAuthMethod) static OIDCRedirectUriBuilder
OIDCRedirectUriBuilder.fromUri
(String baseUri, OIDCResponseMode responseMode, KeycloakSession session, AuthenticatedClientSessionModel clientSession) static AuthenticationProcessor
AuthorizeClientUtil.getAuthenticationProcessor
(KeycloakSession session, EventBuilder event) static String
RedirectUtils.getFirstValidRedirectUri
(KeycloakSession session, String rootUrl, Set<String> validRedirects) static OAuth2CodeParser.ParseResult
OAuth2CodeParser.parseCode
(KeycloakSession session, String code, RealmModel realm, EventBuilder event) Will parse the code and retrieve the corresponding OAuth2Code and AuthenticatedClientSessionModel.static String
OAuth2CodeParser.persistCode
(KeycloakSession session, AuthenticatedClientSessionModel clientSession, OAuth2Code codeData) Will persist the code to the cache and return the object with the codeData and code correctly setRedirectUtils.resolveValidRedirects
(KeycloakSession session, String rootUrl, Set<String> validRedirects) WebOriginsUtils.resolveValidWebOrigins
(KeycloakSession session, ClientModel client) static JSONWebKeySet
JWKSHttpUtils.sendJwksRequest
(KeycloakSession session, String jwksURI) static jakarta.ws.rs.core.Response
LogoutUtil.sendResponseAfterLogoutFinished
(KeycloakSession session, AuthenticationSessionModel logoutSession) static void
PairwiseSubMapperValidator.validate
(KeycloakSession session, String rootUrl, Set<String> redirectUris, String sectorIdentifierUri) static void
PairwiseSubMapperValidator.validate
(KeycloakSession session, ClientModel client, ProtocolMapperModel mapperModel) static String
RedirectUtils.verifyRealmRedirectUri
(KeycloakSession session, String redirectUri) Deprecated.static String
RedirectUtils.verifyRedirectUri
(KeycloakSession session, String rootUrl, String redirectUri, Set<String> validRedirects, boolean requireRedirectUri) static String
RedirectUtils.verifyRedirectUri
(KeycloakSession session, String redirectUri, ClientModel client) static String
RedirectUtils.verifyRedirectUri
(KeycloakSession session, String redirectUri, ClientModel client, boolean requireRedirectUri) -
Uses of KeycloakSession in org.keycloak.protocol.saml
Modifier and TypeMethodDescriptionDefaultSamlArtifactResolverFactory.create
(KeycloakSession session) EntityDescriptorDescriptionConverter.create
(KeycloakSession session) SamlProtocolFactory.create
(KeycloakSession session) SamlProtocolFactory.createProtocolEndpoint
(KeycloakSession session, EventBuilder event) protected abstract jakarta.ws.rs.core.Response
SamlService.BindingProtocol.error
(KeycloakSession session, AuthenticationSessionModel authenticationSession, jakarta.ws.rs.core.Response.Status status, String message, Object... parameters) protected jakarta.ws.rs.core.Response
SamlService.PostBindingProtocol.error
(KeycloakSession session, AuthenticationSessionModel authenticationSession, jakarta.ws.rs.core.Response.Status status, String message, Object... parameters) protected jakarta.ws.rs.core.Response
SamlService.RedirectBindingProtocol.error
(KeycloakSession session, AuthenticationSessionModel authenticationSession, jakarta.ws.rs.core.Response.Status status, String message, Object... parameters) SamlSessionUtils.getClientSession
(KeycloakSession session, RealmModel realm, String sessionIndex) protected URI
SamlService.BindingProtocol.getExpectedDestinationUri
(KeycloakSession session) KEYCLOAK-12616, KEYCLOAK-12944: construct the expected destination URI using the configured base URI.static String
SamlService.getIDPMetadataDescriptor
(jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session, RealmModel realm) static String
SamlProtocol.getLogoutServiceUrl
(KeycloakSession session, ClientModel client, String bindingType, boolean backChannelLogout) SamlService.getOrCreateLoginSessionForIdpInitiatedSso
(KeycloakSession session, RealmModel realm, ClientModel client, String relayState) Creates a client session object for SAML IdP-initiated SSO session.SamlSessionUtils.getSamlAuthenticationPreprocessorIterator
(KeycloakSession session) protected String
SamlProtocol.getSAMLNameId
(List<SamlProtocol.ProtocolMapperProcessor<SAMLNameIdMapper>> samlNameIdMappers, String nameIdFormat, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) SamlProtocol.populateAttributeStatements
(List<SamlProtocol.ProtocolMapperProcessor<SAMLAttributeStatementMapper>> attributeStatementMappers, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) void
SamlProtocol.populateRoles
(SamlProtocol.ProtocolMapperProcessor<SAMLRoleListMapper> roleListMapper, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx, AttributeStatementType existingAttributeStatement) ArtifactResolver.selectSourceClient
(KeycloakSession session, String artifact) Returns client model that issued artifactDefaultSamlArtifactResolver.selectSourceClient
(KeycloakSession session, String artifact) SamlProtocol.setSession
(KeycloakSession session) SamlProtocol.transformLoginResponse
(List<SamlProtocol.ProtocolMapperProcessor<SAMLLoginResponseMapper>> mappers, ResponseType response, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) ModifierConstructorDescriptionJaxrsSAML2BindingBuilder
(KeycloakSession session) SAMLDecryptionKeysLocator
(KeycloakSession session, RealmModel realm, String requestedAlgorithm) SamlService
(KeycloakSession session, EventBuilder event, DestinationValidator destinationValidator) -
Uses of KeycloakSession in org.keycloak.protocol.saml.clientregistration
Modifier and TypeMethodDescriptionEntityDescriptorClientRegistrationProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionEntityDescriptorClientRegistrationContext
(KeycloakSession session, ClientRepresentation client, ClientRegistrationProvider provider) -
Uses of KeycloakSession in org.keycloak.protocol.saml.installation
Modifier and TypeMethodDescriptionstatic void
KeycloakSamlClientInstallation.baseXml
(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri, SamlClient samlClient, StringBuilder buffer) KeycloakSamlClientInstallation.create
(KeycloakSession session) KeycloakSamlSubsystemCliInstallation.create
(KeycloakSession session) KeycloakSamlSubsystemInstallation.create
(KeycloakSession session) ModAuthMellonClientInstallation.create
(KeycloakSession session) SamlSPDescriptorClientInstallation.create
(KeycloakSession session) jakarta.ws.rs.core.Response
KeycloakSamlClientInstallation.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri) jakarta.ws.rs.core.Response
KeycloakSamlSubsystemCliInstallation.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri) jakarta.ws.rs.core.Response
KeycloakSamlSubsystemInstallation.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri) jakarta.ws.rs.core.Response
ModAuthMellonClientInstallation.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI serverBaseUri) jakarta.ws.rs.core.Response
SamlSPDescriptorClientInstallation.generateInstallation
(KeycloakSession session, RealmModel realm, ClientModel client, URI serverBaseUri) -
Uses of KeycloakSession in org.keycloak.protocol.saml.mappers
Modifier and TypeMethodDescriptionfinal ProtocolMapper
AbstractSAMLProtocolMapper.create
(KeycloakSession session) final ProtocolMapper
RoleNameMapper.create
(KeycloakSession session) SAMLNameIdMapper.mapperNameId
(String nameIdFormat, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) UserAttributeNameIdMapper.mapperNameId
(String nameIdFormat, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) void
RoleListMapper.mapRoles
(AttributeStatementType roleAttributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) void
SAMLRoleListMapper.mapRoles
(AttributeStatementType roleAttributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) void
GroupMembershipMapper.transformAttributeStatement
(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) void
HardcodedAttributeMapper.transformAttributeStatement
(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) void
SAMLAttributeStatementMapper.transformAttributeStatement
(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) void
ScriptBasedMapper.transformAttributeStatement
(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) This method attaches one or many attributes to the passed attribute statement.void
UserAttributeStatementMapper.transformAttributeStatement
(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) void
UserPropertyAttributeStatementMapper.transformAttributeStatement
(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) void
UserSessionNoteStatementMapper.transformAttributeStatement
(AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) SAMLAudienceProtocolMapper.transformLoginResponse
(ResponseType response, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) SAMLAudienceResolveProtocolMapper.transformLoginResponse
(ResponseType response, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) SAMLLoginResponseMapper.transformLoginResponse
(ResponseType response, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) void
ScriptBasedMapper.validateConfig
(KeycloakSession session, RealmModel realm, ProtocolMapperContainerModel client, ProtocolMapperModel mapperModel) -
Uses of KeycloakSession in org.keycloak.protocol.saml.profile.ecp
ModifierConstructorDescriptionSamlEcpProfileService
(KeycloakSession session, EventBuilder event, DestinationValidator destinationValidator) -
Uses of KeycloakSession in org.keycloak.protocol.saml.profile.ecp.authenticator
Modifier and TypeMethodDescriptionboolean
HttpBasicAuthenticator.configuredFor
(KeycloakSession session, RealmModel realm, UserModel user) HttpBasicAuthenticatorFactory.create
(KeycloakSession session) void
HttpBasicAuthenticator.setRequiredActions
(KeycloakSession session, RealmModel realm, UserModel user) -
Uses of KeycloakSession in org.keycloak.protocol.saml.profile.util
Modifier and TypeMethodDescriptionjakarta.xml.soap.SOAPMessage
Soap.SoapMessageBuilder.call
(String url, KeycloakSession session) Performs a synchronous call, sending the current message to the given url. -
Uses of KeycloakSession in org.keycloak.provider
Modifier and TypeMethodDescriptiondefault ExceptionConverter
ExceptionConverter.create
(KeycloakSession session) ProviderFactory.create
(KeycloakSession session) void
InvalidationHandler.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... params) Invalidates intermediate states of the given objects -
Uses of KeycloakSession in org.keycloak.scripting
Modifier and TypeMethodDescriptionDefaultScriptingProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.services
Modifier and TypeMethodDescriptionprotected DefaultKeycloakContext
DefaultKeycloakSession.createKeycloakContext
(KeycloakSession session) static jakarta.ws.rs.core.Response
ErrorPage.error
(KeycloakSession session, AuthenticationSessionModel authenticationSession, jakarta.ws.rs.core.Response.Status status, String message, Object... parameters) void
DefaultComponentFactoryProviderFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... ids) void
DefaultKeycloakSessionFactory.invalidate
(KeycloakSession session, InvalidationHandler.InvalidableObjectType type, Object... ids) ModifierConstructorDescriptionDefaultKeycloakContext
(KeycloakSession session) ErrorPageException
(KeycloakSession session, jakarta.ws.rs.core.Response.Status status, String errorMessage, Object... parameters) ErrorPageException
(KeycloakSession session, AuthenticationSessionModel authSession, jakarta.ws.rs.core.Response.Status status, String errorMessage, Object... parameters) HttpResponseImpl
(KeycloakSession session, org.jboss.resteasy.spi.HttpResponse delegate) -
Uses of KeycloakSession in org.keycloak.services.clientpolicy
Modifier and TypeMethodDescriptionDefaultClientPolicyManagerFactory.create
(KeycloakSession session) protected List<ClientProfileRepresentation>
DefaultClientPolicyManagerFactory.getGlobalClientProfiles
(KeycloakSession session) When this method is called, assumption is that CLIENT_POLICIES feature is enabledModifierConstructorDescriptionDefaultClientPolicyManager
(KeycloakSession session, Supplier<List<ClientProfileRepresentation>> globalClientProfilesSupplier) -
Uses of KeycloakSession in org.keycloak.services.clientpolicy.condition
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractClientPolicyConditionProvider.session
Modifier and TypeMethodDescriptionAnyClientConditionFactory.create
(KeycloakSession session) ClientAccessTypeConditionFactory.create
(KeycloakSession session) ClientRolesConditionFactory.create
(KeycloakSession session) ClientScopesConditionFactory.create
(KeycloakSession session) ClientUpdaterContextConditionFactory.create
(KeycloakSession session) ClientUpdaterSourceGroupsConditionFactory.create
(KeycloakSession session) ClientUpdaterSourceHostsConditionFactory.create
(KeycloakSession session) ClientUpdaterSourceRolesConditionFactory.create
(KeycloakSession session) ModifierConstructorDescriptionAnyClientCondition
(KeycloakSession session) ClientAccessTypeCondition
(KeycloakSession session) ClientRolesCondition
(KeycloakSession session) ClientScopesCondition
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.services.clientpolicy.context
ModifierConstructorDescriptionDynamicClientUnregisterContext
(KeycloakSession session, ClientModel targetClient, JsonWebToken token, RealmModel realm) DynamicClientUpdatedContext
(KeycloakSession session, ClientModel updatedClient, JsonWebToken token, RealmModel realm) DynamicClientViewContext
(KeycloakSession session, ClientModel targetClient, JsonWebToken token, RealmModel realm) -
Uses of KeycloakSession in org.keycloak.services.clientpolicy.executor
Modifier and TypeFieldDescriptionprotected final KeycloakSession
ConfidentialClientAcceptExecutor.session
protected final KeycloakSession
SecureParContentsExecutor.session
protected final KeycloakSession
SecureResponseTypeExecutor.session
protected final KeycloakSession
SuppressRefreshTokenRotationExecutor.session
Modifier and TypeMethodDescriptionClientSecretRotationExecutorFactory.create
(KeycloakSession session) ConfidentialClientAcceptExecutorFactory.create
(KeycloakSession session) ConsentRequiredExecutorFactory.create
(KeycloakSession session) FullScopeDisabledExecutorFactory.create
(KeycloakSession session) HolderOfKeyEnforcerExecutorFactory.create
(KeycloakSession session) IntentClientBindCheckExecutorFactory.create
(KeycloakSession session) PKCEEnforcerExecutorFactory.create
(KeycloakSession session) RegistrationAccessTokenRotationDisabledExecutorFactory.create
(KeycloakSession session) RejectImplicitGrantExecutorFactory.create
(KeycloakSession session) RejectRequestExecutorFactory.create
(KeycloakSession session) RejectResourceOwnerPasswordCredentialsGrantExecutorFactory.create
(KeycloakSession session) SecureClientAuthenticatorExecutorFactory.create
(KeycloakSession session) SecureClientUrisExecutorFactory.create
(KeycloakSession session) SecureLogoutExecutorFactory.create
(KeycloakSession session) SecureParContentsExecutorFactory.create
(KeycloakSession session) SecureRequestObjectExecutorFactory.create
(KeycloakSession session) SecureResponseTypeExecutorFactory.create
(KeycloakSession session) SecureSessionEnforceExecutorFactory.create
(KeycloakSession session) SecureSigningAlgorithmExecutorFactory.create
(KeycloakSession session) SecureSigningAlgorithmForSignedJwtExecutorFactory.create
(KeycloakSession session) SuppressRefreshTokenRotationExecutorFactory.create
(KeycloakSession session) ModifierConstructorDescriptionPKCEEnforcerExecutor
(KeycloakSession session) RegistrationAccessTokenRotationDisabledExecutor
(String providerId, KeycloakSession session) RejectRequestExecutor
(KeycloakSession session) SecureClientUrisExecutor
(KeycloakSession session) SecureLogoutExecutor
(KeycloakSession session) SecureParContentsExecutor
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.services.clientregistration
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractClientRegistrationContext.session
protected KeycloakSession
AbstractClientRegistrationProvider.session
Modifier and TypeMethodDescriptionAbstractClientRegistrationContext.getSession()
ClientRegistrationContext.getSession()
Modifier and TypeMethodDescriptionAdapterInstallationClientRegistrationProviderFactory.create
(KeycloakSession session) DefaultClientRegistrationProviderFactory.create
(KeycloakSession session) static String
ClientRegistrationTokenUtils.createInitialAccessToken
(KeycloakSession session, RealmModel realm, ClientInitialAccessModel model) static String
ClientRegistrationTokenUtils.updateRegistrationAccessToken
(KeycloakSession session, ClientModel client, RegistrationAuth registrationAuth) static String
ClientRegistrationTokenUtils.updateRegistrationAccessToken
(KeycloakSession session, RealmModel realm, ClientModel client, RegistrationAuth registrationAuth) static String
ClientRegistrationTokenUtils.updateTokenSignature
(KeycloakSession session, ClientRegistrationAuth auth) ClientRegistrationTokenUtils.verifyToken
(KeycloakSession session, RealmModel realm, String token) ModifierConstructorDescriptionAbstractClientRegistrationContext
(KeycloakSession session, ClientRepresentation client, ClientRegistrationProvider provider) ClientRegistrationAuth
(KeycloakSession session, ClientRegistrationProvider provider, EventBuilder event, String endpoint) ClientRegistrationService
(KeycloakSession session, EventBuilder event) DefaultClientRegistrationContext
(KeycloakSession session, ClientRepresentation client, ClientRegistrationProvider provider) -
Uses of KeycloakSession in org.keycloak.services.clientregistration.oidc
Modifier and TypeMethodDescriptionOIDCClientRegistrationProviderFactory.create
(KeycloakSession session) static OIDCClientRepresentation
DescriptionConverter.toExternalResponse
(KeycloakSession session, ClientRepresentation client, URI uri) static ClientRepresentation
DescriptionConverter.toInternal
(KeycloakSession session, OIDCClientRepresentation clientOIDC) ModifierConstructorDescriptionOIDCClientRegistrationContext
(KeycloakSession session, ClientRepresentation client, ClientRegistrationProvider provider, OIDCClientRepresentation oidcRep) -
Uses of KeycloakSession in org.keycloak.services.clientregistration.policy
Modifier and TypeMethodDescriptionAbstractClientRegistrationPolicyFactory.getConfigProperties
(KeycloakSession session) ClientRegistrationPolicyFactory.getConfigProperties
(KeycloakSession session) Get config properties filled for particular session.static void
ClientRegistrationPolicyManager.triggerBeforeRemove
(KeycloakSession session, ClientRegistrationProvider provider, RegistrationAuth authType, ClientModel client) static void
ClientRegistrationPolicyManager.triggerBeforeView
(KeycloakSession session, ClientRegistrationProvider provider, RegistrationAuth authType, ClientModel client) void
AbstractClientRegistrationPolicyFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) -
Uses of KeycloakSession in org.keycloak.services.clientregistration.policy.impl
Modifier and TypeMethodDescriptionClientDisabledClientRegistrationPolicyFactory.create
(KeycloakSession session, ComponentModel model) ClientScopesClientRegistrationPolicyFactory.create
(KeycloakSession session, ComponentModel model) ConsentRequiredClientRegistrationPolicyFactory.create
(KeycloakSession session, ComponentModel model) MaxClientsClientRegistrationPolicyFactory.create
(KeycloakSession session, ComponentModel model) ProtocolMappersClientRegistrationPolicyFactory.create
(KeycloakSession session, ComponentModel model) ScopeClientRegistrationPolicyFactory.create
(KeycloakSession session, ComponentModel model) TrustedHostClientRegistrationPolicyFactory.create
(KeycloakSession session, ComponentModel model) ClientScopesClientRegistrationPolicyFactory.getConfigProperties
(KeycloakSession session) void
MaxClientsClientRegistrationPolicyFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) void
TrustedHostClientRegistrationPolicyFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) ModifierConstructorDescriptionClientScopesClientRegistrationPolicy
(KeycloakSession session, ComponentModel componentModel) MaxClientsClientRegistrationPolicy
(KeycloakSession session, ComponentModel componentModel) ProtocolMappersClientRegistrationPolicy
(KeycloakSession session, ComponentModel componentModel) ScopeClientRegistrationPolicy
(KeycloakSession session, ComponentModel componentModel) TrustedHostClientRegistrationPolicy
(KeycloakSession session, ComponentModel componentModel) -
Uses of KeycloakSession in org.keycloak.services.error
Modifier and TypeMethodDescriptionstatic jakarta.ws.rs.core.Response
KeycloakErrorHandler.getResponse
(KeycloakSession session, Throwable throwable) -
Uses of KeycloakSession in org.keycloak.services.filters
Modifier and TypeMethodDescriptionprotected void
AbstractRequestFilter.close
(KeycloakSession session) Modifier and TypeMethodDescriptionprotected void
AbstractRequestFilter.filter
(ClientConnection clientConnection, Consumer<KeycloakSession> next) -
Uses of KeycloakSession in org.keycloak.services.legacysessionsupport
Modifier and TypeMethodDescriptionLegacySessionSupportProviderFactoryImpl.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.services.managers
Modifier and TypeMethodDescriptionstatic jakarta.ws.rs.core.Response
AuthenticationManager.actionRequired
(KeycloakSession session, AuthenticationSessionModel authSession, HttpRequest request, EventBuilder event) AppAuthManager.authenticateIdentityCookie
(KeycloakSession session, RealmModel realm) AuthenticationManager.authenticateIdentityCookie
(KeycloakSession session, RealmModel realm) AuthenticationManager.authenticateIdentityCookie
(KeycloakSession session, RealmModel realm, boolean checkActive) static BackchannelLogoutResponse
AuthenticationManager.backchannelLogout
(KeycloakSession session, RealmModel realm, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, jakarta.ws.rs.core.HttpHeaders headers, boolean logoutBroker) static BackchannelLogoutResponse
AuthenticationManager.backchannelLogout
(KeycloakSession session, RealmModel realm, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, jakarta.ws.rs.core.HttpHeaders headers, boolean logoutBroker, boolean offlineSession) static void
AuthenticationManager.backchannelLogout
(KeycloakSession session, UserSessionModel userSession, boolean logoutBroker) static void
AuthenticationManager.backchannelLogoutUserFromClient
(KeycloakSession session, RealmModel realm, UserModel user, ClientModel client, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.HttpHeaders headers) Logout all clientSessions of this user and clientstatic jakarta.ws.rs.core.Response
AuthenticationManager.browserLogout
(KeycloakSession session, RealmModel realm, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, jakarta.ws.rs.core.HttpHeaders headers) void
BruteForceProtector.cleanUpPermanentLockout
(KeycloakSession session, RealmModel realm, UserModel user) Clears any remaining traces of the permanent lockout.void
DefaultBruteForceProtector.cleanUpPermanentLockout
(KeycloakSession session, RealmModel realm, UserModel user) DefaultBruteForceProtectorFactory.create
(KeycloakSession session) RealmManagerProviderFactory.create
(KeycloakSession session) Deprecated.static ClientModel
ClientManager.createClient
(KeycloakSession session, RealmModel realm, ClientRepresentation rep) Should not be called from an import.static IdentityCookieToken
AuthenticationManager.createIdentityToken
(KeycloakSession keycloakSession, RealmModel realm, UserModel user, UserSessionModel session, String issuer) static void
AuthenticationManager.createLoginCookie
(KeycloakSession keycloakSession, RealmModel realm, UserModel user, UserSessionModel session, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection) static AuthenticationSessionModel
AuthenticationManager.createOrJoinLogoutSession
(KeycloakSession session, RealmModel realm, AuthenticationSessionManager asm, UserSessionModel userSession, boolean browserCookie) static void
AuthenticationManager.createRememberMeCookie
(String username, jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session) static void
AuthenticationManager.evaluateRequiredActionTriggers
(KeycloakSession session, AuthenticationSessionModel authSession, HttpRequest request, EventBuilder event, RealmModel realm, UserModel user) protected static jakarta.ws.rs.core.Response
AuthenticationManager.executionActions
(KeycloakSession session, AuthenticationSessionModel authSession, HttpRequest request, EventBuilder event, RealmModel realm, UserModel user, Stream<String> requiredActions) static void
AuthenticationManager.expireAuthSessionCookie
(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session) static void
AuthenticationManager.expireCookie
(RealmModel realm, String cookieName, String path, boolean httpOnly, ClientConnection connection, ServerCookie.SameSiteAttributeValue sameSite, KeycloakSession session) static void
AuthenticationManager.expireIdentityCookie
(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session) static void
AuthenticationManager.expireOldAuthSessionCookie
(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session) static void
AuthenticationManager.expireOldIdentityCookie
(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session) static void
AuthenticationManager.expireRememberMeCookie
(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session) static boolean
AuthenticationManager.expireUserSessionCookie
(KeycloakSession session, UserSessionModel userSession, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, jakarta.ws.rs.core.HttpHeaders headers, ClientConnection connection) protected void
DefaultBruteForceProtector.failure
(KeycloakSession session, DefaultBruteForceProtector.LoginEvent event) static jakarta.ws.rs.core.Response
AuthenticationManager.finishBrowserLogout
(KeycloakSession session, RealmModel realm, UserSessionModel userSession, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, jakarta.ws.rs.core.HttpHeaders headers) static jakarta.ws.rs.core.Response
AuthenticationManager.finishedRequiredActions
(KeycloakSession session, AuthenticationSessionModel authSession, UserSessionModel userSession, ClientConnection clientConnection, HttpRequest request, jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder event) static void
AuthenticationManager.finishUnconfirmedUserSession
(KeycloakSession session, RealmModel realm, UserSessionModel userSessionModel) static String
ResourceAdminManager.getBackchannelLogoutUrl
(KeycloakSession session, ClientModel client) static <CLIENT_SESSION extends CommonClientSessionModel>
CLIENT_SESSIONClientSessionCode.getClientSession
(String code, String tabId, KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, Class<CLIENT_SESSION> sessionClass) static String
ResourceAdminManager.getManagementUrl
(KeycloakSession session, ClientModel client) protected RealmModel
DefaultBruteForceProtector.getRealmModel
(KeycloakSession session, DefaultBruteForceProtector.LoginEvent event) static String
AuthenticationManager.getSessionIdFromSessionCookie
(KeycloakSession session) protected UserLoginFailureModel
DefaultBruteForceProtector.getUserModel
(KeycloakSession session, DefaultBruteForceProtector.LoginEvent event) boolean
BruteForceProtector.isPermanentlyLockedOut
(KeycloakSession session, RealmModel realm, UserModel user) boolean
DefaultBruteForceProtector.isPermanentlyLockedOut
(KeycloakSession session, RealmModel realm, UserModel user) boolean
BruteForceProtector.isTemporarilyDisabled
(KeycloakSession session, RealmModel realm, UserModel user) boolean
DefaultBruteForceProtector.isTemporarilyDisabled
(KeycloakSession session, RealmModel realm, UserModel user) static void
AuthenticationManager.logSuccess
(KeycloakSession session, AuthenticationSessionModel authSession) static UserModel
AuthenticationManager.lookupUserForBruteForceLog
(KeycloakSession session, RealmModel realm, AuthenticationSessionModel authenticationSession) static jakarta.ws.rs.core.Response
AuthenticationManager.nextActionAfterAuthentication
(KeycloakSession session, AuthenticationSessionModel authSession, ClientConnection clientConnection, HttpRequest request, jakarta.ws.rs.core.UriInfo uriInfo, EventBuilder event) static String
AuthenticationManager.nextRequiredAction
(KeycloakSession session, AuthenticationSessionModel authSession, HttpRequest request, EventBuilder event) static <CLIENT_SESSION extends CommonClientSessionModel>
ClientSessionCode.ParseResult<CLIENT_SESSION>ClientSessionCode.parseResult
(String code, String tabId, KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, CLIENT_SESSION clientSession) static <CLIENT_SESSION extends CommonClientSessionModel>
ClientSessionCode.ParseResult<CLIENT_SESSION>ClientSessionCode.parseResult
(String code, String tabId, KeycloakSession session, RealmModel realm, ClientModel client, EventBuilder event, Class<CLIENT_SESSION> sessionClass) static Set<LDAPCapabilityRepresentation>
LDAPServerCapabilitiesManager.queryServerCapabilities
(TestLdapConnectionRepresentation config, KeycloakSession session, RealmModel realm) static jakarta.ws.rs.core.Response
AuthenticationManager.redirectAfterSuccessfulFlow
(KeycloakSession session, RealmModel realm, UserSessionModel userSession, ClientSessionContext clientSessionCtx, HttpRequest request, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, EventBuilder event, AuthenticationSessionModel authSession) static jakarta.ws.rs.core.Response
AuthenticationManager.redirectAfterSuccessfulFlow
(KeycloakSession session, RealmModel realm, UserSessionModel userSession, ClientSessionContext clientSessionCtx, HttpRequest request, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection clientConnection, EventBuilder event, AuthenticationSessionModel authSession, LoginProtocol protocol) static jakarta.ws.rs.core.Response
AuthenticationManager.redirectToRequiredActions
(KeycloakSession session, RealmModel realm, AuthenticationSessionModel authSession, jakarta.ws.rs.core.UriInfo uriInfo, String requiredAction) static String
ResourceAdminManager.resolveUri
(KeycloakSession session, String rootUrl, String uri) static boolean
UserConsentManager.revokeConsentToClient
(KeycloakSession session, ClientModel client, UserModel user) Revoke consent of given user to given clientAppAuthManager.BearerTokenAuthenticator.setSession
(KeycloakSession session) protected void
DefaultBruteForceProtector.success
(KeycloakSession session, DefaultBruteForceProtector.LoginEvent event) static void
LDAPServerCapabilitiesManager.testLDAP
(TestLdapConnectionRepresentation config, KeycloakSession session, RealmModel realm) AuthenticationManager.verifyIdentityToken
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, ClientConnection connection, boolean checkActive, boolean checkTokenType, String checkAudience, boolean isCookie, String tokenString, jakarta.ws.rs.core.HttpHeaders headers, TokenVerifier.Predicate<? super AccessToken>... additionalChecks) ModifierConstructorDescriptionApplianceBootstrap
(KeycloakSession session) BearerTokenAuthenticator
(KeycloakSession session) ClientSessionCode
(KeycloakSession session, RealmModel realm, CLIENT_SESSION commonLoginSession) RealmManager
(KeycloakSession session) ResourceAdminManager
(KeycloakSession session) UserSessionCrossDCManager
(KeycloakSession session) UserSessionManager
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.services.migration
Modifier and TypeMethodDescriptionDefaultMigrationProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.services.resources
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractSecuredLocalService.session
protected final KeycloakSession
ClientsManagementService.session
protected final KeycloakSession
LoginActionsService.session
protected final KeycloakSession
PublicRealmResource.session
protected KeycloakSession
RealmsResource.session
Modifier and TypeMethodDescriptionCors.allowedOrigins
(KeycloakSession session, ClientModel client) static void
LoginActionsServiceChecks.checkIsClientValid
(KeycloakSession session, ClientModel client) Verifies whether the client denoted by client ID in token'siss
(issuedFor
) field both exists and is enabled.static void
LoginActionsServiceChecks.checkIsUserValid
(KeycloakSession session, RealmModel realm, String userId, Consumer<UserModel> userSetter) Verifies whether the user given by ID both exists in the current realm.static IdentityProvider
IdentityBrokerService.getIdentityProvider
(KeycloakSession session, RealmModel realm, String alias) static IdentityProviderFactory
IdentityBrokerService.getIdentityProviderFactory
(KeycloakSession session, IdentityProviderModel model) static PublishedRealmRepresentation
PublicRealmResource.realmRep
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo) static jakarta.ws.rs.core.Response
LoginActionsService.redirectToAfterBrokerLoginEndpoint
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, AuthenticationSessionModel authSession, boolean firstBrokerLogin) ModifierConstructorDescriptionAbstractSecuredLocalService
(KeycloakSession session, ClientModel client) ClientsManagementService
(KeycloakSession session, EventBuilder event) IdentityBrokerService
(KeycloakSession session) LoginActionsService
(KeycloakSession session, EventBuilder event) LogoutSessionCodeChecks
(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, HttpRequest request, ClientConnection clientConnection, KeycloakSession session, EventBuilder event, String code, String clientId, String tabId) PublicRealmResource
(KeycloakSession session) SessionCodeChecks
(RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo, HttpRequest request, ClientConnection clientConnection, KeycloakSession session, EventBuilder event, String authSessionId, String code, String execution, String clientId, String tabId, String flowPath) -
Uses of KeycloakSession in org.keycloak.services.resources.account
Modifier and TypeMethodDescriptionLinkedAccountsResource.getLinkedAccounts
(KeycloakSession session, RealmModel realm, UserModel user) boolean
PasswordUtil.isConfigured
(KeycloakSession session, RealmModel realm, UserModel user) Deprecated.ModifierConstructorDescriptionAccountConsole
(KeycloakSession session, ClientModel client, Theme theme) AccountCredentialResource
(KeycloakSession session, UserModel user, Auth auth) AccountLoader
(KeycloakSession session, EventBuilder event) AccountRestService
(KeycloakSession session, Auth auth, EventBuilder event, AccountRestApiVersion version) LinkedAccountsResource
(KeycloakSession session, HttpRequest request, Auth auth, EventBuilder event, UserModel user) PasswordUtil
(KeycloakSession session, UserModel user) Deprecated.SessionResource
(KeycloakSession session, Auth auth) -
Uses of KeycloakSession in org.keycloak.services.resources.account.resources
ModifierConstructorDescriptionprotected
AbstractResourceService
(KeycloakSession session, UserModel user, Auth auth, HttpRequest request) ResourcesService
(KeycloakSession session, UserModel user, Auth auth, HttpRequest request) -
Uses of KeycloakSession in org.keycloak.services.resources.admin
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AdminConsole.session
protected KeycloakSession
AdminRoot.session
protected final KeycloakSession
AttackDetectionResource.session
protected final KeycloakSession
ClearKeysCacheResource.session
protected final KeycloakSession
ClearRealmCacheResource.session
protected final KeycloakSession
ClearUserCacheResource.session
protected final KeycloakSession
ClientAttributeCertificateResource.session
protected KeycloakSession
ClientInitialAccessResource.session
protected final KeycloakSession
ClientPoliciesResource.session
protected final KeycloakSession
ClientProfilesResource.session
protected final KeycloakSession
ClientRegistrationPolicyResource.session
protected final KeycloakSession
ClientResource.session
protected KeycloakSession
ClientRoleMappingsResource.session
protected KeycloakSession
ClientScopeResource.session
protected final KeycloakSession
ClientScopesResource.session
protected final KeycloakSession
ClientsResource.session
protected final KeycloakSession
ClientStorageProviderResource.session
protected final KeycloakSession
ComponentResource.session
protected final KeycloakSession
LdapServerCapabilitiesResource.session
protected final KeycloakSession
ProtocolMappersResource.session
protected final KeycloakSession
RealmAdminResource.session
protected final KeycloakSession
RealmLocalizationResource.session
protected final KeycloakSession
RealmsAdminResource.session
protected final KeycloakSession
RoleMapperResource.session
protected KeycloakSession
ScopeMappedClientResource.session
protected KeycloakSession
ScopeMappedResource.session
protected final KeycloakSession
TestLdapConnectionResource.session
protected final KeycloakSession
UserProfileResource.session
protected final KeycloakSession
UserResource.session
protected final KeycloakSession
UsersResource.session
protected final KeycloakSession
UserStorageProviderResource.session
Modifier and TypeMethodDescriptionAdminEventBuilder.clone
(KeycloakSession session) Create a new instance of theAdminEventBuilder
that is bound to a new session.static void
AuthenticationManagementResource.copy
(KeycloakSession session, RealmModel realm, String newName, AuthenticationFlowModel from, AuthenticationFlowModel to) static AuthenticationFlowModel
AuthenticationManagementResource.copyFlow
(KeycloakSession session, RealmModel realm, AuthenticationFlowModel flow, String newName) ClearKeysCacheRealmAdminProvider.create
(KeycloakSession session) ClearRealmCacheRealmAdminProvider.create
(KeycloakSession session) ClearUserCacheRealmAdminProvider.create
(KeycloakSession session) LdapServerCapabilitiesRealmAdminProvider.create
(KeycloakSession session) TestLdapConnectionRealmAdminProvider.create
(KeycloakSession session) UserStorageProviderRealmAdminProvider.create
(KeycloakSession session) static UserProfileMetadata
UserProfileResource.createUserProfileMetadata
(KeycloakSession session, UserProfile profile) static Properties
AdminRoot.getMessages
(KeycloakSession session, RealmModel realm, String lang) static Properties
AdminRoot.getMessages
(KeycloakSession session, RealmModel realm, String lang, String... bundles) ClearKeysCacheRealmAdminProvider.getResource
(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClearRealmCacheRealmAdminProvider.getResource
(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClearUserCacheRealmAdminProvider.getResource
(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) LdapServerCapabilitiesRealmAdminProvider.getResource
(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) TestLdapConnectionRealmAdminProvider.getResource
(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) UserStorageProviderRealmAdminProvider.getResource
(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) static Theme
AdminRoot.getTheme
(KeycloakSession session, RealmModel realm) AdminEventBuilder.refreshRealmEventsConfig
(KeycloakSession session) Refreshes the builder assuming that the realm event information has changed.protected void
AdminRoot.resolveRealmAndUpdateSession
(String name, KeycloakSession session) static void
GroupResource.updateGroup
(GroupRepresentation rep, GroupModel model, RealmModel realm, KeycloakSession session) protected void
RoleResource.updateRole
(RoleRepresentation rep, RoleModel role, RealmModel realm, KeycloakSession session) static void
UserResource.updateUserFromRep
(UserProfile profile, UserModel user, UserRepresentation rep, KeycloakSession session, boolean isUpdateExistingUser) static jakarta.ws.rs.core.Response
UserResource.validateUserProfile
(UserProfile profile, KeycloakSession session, AdminAuth adminAuth) ModifierConstructorDescriptionAdminConsole
(KeycloakSession session) AdminEventBuilder
(RealmModel realm, AdminAuth auth, KeycloakSession session, ClientConnection clientConnection) AdminMessageFormatter
(KeycloakSession session, UserModel user) AttackDetectionResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) AuthenticationManagementResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClearKeysCacheResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClearRealmCacheResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClearUserCacheResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClientAttributeCertificateResource
(AdminPermissionEvaluator auth, ClientModel client, KeycloakSession session, String attributePrefix, AdminEventBuilder adminEvent) ClientInitialAccessResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClientPoliciesResource
(KeycloakSession session, AdminPermissionEvaluator auth) ClientProfilesResource
(KeycloakSession session, AdminPermissionEvaluator auth) ClientRegistrationPolicyResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClientResource
(RealmModel realm, AdminPermissionEvaluator auth, ClientModel clientModel, KeycloakSession session, AdminEventBuilder adminEvent) ClientRoleMappingsResource
(jakarta.ws.rs.core.UriInfo uriInfo, KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, RoleMapperModel user, ClientModel client, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck manageCheck, AdminPermissionEvaluator.RequirePermissionCheck viewCheck) ClientScopeEvaluateResource
(KeycloakSession session, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm, AdminPermissionEvaluator auth, ClientModel client, ClientConnection clientConnection) ClientScopeResource
(RealmModel realm, AdminPermissionEvaluator auth, ClientScopeModel clientScope, KeycloakSession session, AdminEventBuilder adminEvent) ClientScopesResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClientsResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ClientStorageProviderResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ComponentResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) GroupResource
(RealmModel realm, GroupModel group, KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) GroupsResource
(RealmModel realm, KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) IdentityProviderResource
(AdminPermissionEvaluator auth, RealmModel realm, KeycloakSession session, IdentityProviderModel identityProviderModel, AdminEventBuilder adminEvent) IdentityProvidersResource
(RealmModel realm, KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) KeyResource
(RealmModel realm, KeycloakSession session, AdminPermissionEvaluator auth) LdapServerCapabilitiesResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) ProtocolMappersResource
(KeycloakSession session, ProtocolMapperContainerModel client, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck managePermission, AdminPermissionEvaluator.RequirePermissionCheck viewPermission) RealmAdminResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) RealmLocalizationResource
(KeycloakSession session, AdminPermissionEvaluator auth) RealmsAdminResource
(KeycloakSession session, AdminAuth auth, TokenManager tokenManager) RealmsAdminResourcePreflight
(KeycloakSession session, AdminAuth auth, TokenManager tokenManager) RealmsAdminResourcePreflight
(KeycloakSession session, AdminAuth auth, TokenManager tokenManager, HttpRequest request) RoleByIdResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) RoleContainerResource
(KeycloakSession session, jakarta.ws.rs.core.UriInfo uriInfo, RealmModel realm, AdminPermissionEvaluator auth, RoleContainerModel roleContainer, AdminEventBuilder adminEvent) RoleMapperResource
(KeycloakSession session, AdminPermissionEvaluator auth, RoleMapperModel roleMapper, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck manageCheck, AdminPermissionEvaluator.RequirePermissionCheck viewCheck) ScopeMappedClientResource
(RealmModel realm, AdminPermissionEvaluator auth, ScopeContainerModel scopeContainer, KeycloakSession session, ClientModel scopedClient, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck managePermission, AdminPermissionEvaluator.RequirePermissionCheck viewPermission) ScopeMappedResource
(RealmModel realm, AdminPermissionEvaluator auth, ScopeContainerModel scopeContainer, KeycloakSession session, AdminEventBuilder adminEvent, AdminPermissionEvaluator.RequirePermissionCheck managePermission, AdminPermissionEvaluator.RequirePermissionCheck viewPermission) TestLdapConnectionResource
(KeycloakSession session, AdminPermissionEvaluator auth) UserProfileResource
(KeycloakSession session, AdminPermissionEvaluator auth) UserResource
(KeycloakSession session, UserModel user, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) UsersResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) UserStorageProviderResource
(KeycloakSession session, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) -
Uses of KeycloakSession in org.keycloak.services.resources.admin.ext
Modifier and TypeMethodDescriptionAdminRealmResourceProvider.getResource
(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent) Returns a JAX-RS resource instance. -
Uses of KeycloakSession in org.keycloak.services.resources.admin.info
-
Uses of KeycloakSession in org.keycloak.services.resources.admin.permissions
Modifier and TypeMethodDescriptionstatic AdminPermissionEvaluator
AdminPermissions.evaluator
(KeycloakSession session, RealmModel realm, RealmModel adminsRealm, UserModel admin) static AdminPermissionEvaluator
AdminPermissions.evaluator
(KeycloakSession session, RealmModel realm, AdminAuth auth) static AdminPermissionManagement
AdminPermissions.management
(KeycloakSession session, RealmModel realm) static RealmsPermissionEvaluator
AdminPermissions.realms
(KeycloakSession session, RealmModel adminsRealm, UserModel admin) static RealmsPermissionEvaluator
AdminPermissions.realms
(KeycloakSession session, AdminAuth auth) -
Uses of KeycloakSession in org.keycloak.services.scheduled
Modifier and TypeMethodDescriptionvoid
ClearExpiredAdminEvents.run
(KeycloakSession session) void
ClearExpiredClientInitialAccessTokens.run
(KeycloakSession session) void
ClearExpiredEvents.run
(KeycloakSession session) void
ClearExpiredUserSessions.run
(KeycloakSession session) protected void
ClusterAwareScheduledTaskRunner.runTask
(KeycloakSession session) protected void
ScheduledTaskRunner.runTask
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.services.util
Modifier and TypeMethodDescriptionstatic void
CookieHelper.addCookie
(String name, String value, String path, String domain, String comment, int maxAge, boolean secure, boolean httpOnly, ServerCookie.SameSiteAttributeValue sameSite, KeycloakSession session) Set a response cookie.static void
CookieHelper.addCookie
(String name, String value, String path, String domain, String comment, int maxAge, boolean secure, boolean httpOnly, KeycloakSession session) Set a response cookie avoiding SameSite parameterstatic void
P3PHelper.addP3PHeader
(KeycloakSession session) static AccessToken.CertConf
MtlsHoKTokenUtil.bindTokenWithClientCertificate
(HttpRequest request, KeycloakSession session) static DefaultClientSessionContext
DefaultClientSessionContext.fromClientSessionAndClientScopeIds
(AuthenticatedClientSessionModel clientSession, Set<String> clientScopeIds, KeycloakSession session) static DefaultClientSessionContext
DefaultClientSessionContext.fromClientSessionAndScopeParameter
(AuthenticatedClientSessionModel clientSession, String scopeParam, KeycloakSession session) static DefaultClientSessionContext
DefaultClientSessionContext.fromClientSessionScopeParameter
(AuthenticatedClientSessionModel clientSession, KeycloakSession session) Useful if we want to "re-compute" client scopes based on the scope parameterstatic AuthorizationRequestContext
AuthorizationContextUtil.getAuthorizationRequestContextFromScopes
(KeycloakSession session, String scope) Base function to obtain a bare AuthorizationRequestContext with just OAuth2 Scopesstatic AuthorizationRequestContext
AuthorizationContextUtil.getAuthorizationRequestContextFromScopesWithClient
(KeycloakSession session, String scope) An extension ofAuthorizationContextUtil.getAuthorizationRequestContextFromScopes(org.keycloak.models.KeycloakSession, java.lang.String)
that appends the current context's clientstatic Stream<AuthorizationDetails>
AuthorizationContextUtil.getAuthorizationRequestsStreamFromScopesWithClient
(KeycloakSession session, String scope) An extension of {@link AuthorizationContextUtil#getAuthorizationRequestContextFromScopesWithClient)} that returns the list as a Streamstatic Stream<ClientScopeModel>
AuthorizationContextUtil.getClientScopesStreamFromAuthorizationRequestContextWithClient
(KeycloakSession session, String scope) Helper method to return a Stream of all theClientScopeModel
in the currentAuthorizationRequestContext
CookieHelper.getCookieValue
(KeycloakSession session, String name) abstract jakarta.ws.rs.core.Response
BrowserHistoryHelper.loadSavedResponse
(KeycloakSession session, AuthenticationSessionModel authSession) static void
CacheControlUtil.noBackButtonCacheControlHeader
(KeycloakSession session) static void
LocaleUtil.processLocaleParam
(KeycloakSession session, RealmModel realm, AuthenticationSessionModel authSession) static String
ResolveRelative.resolveRelativeUri
(KeycloakSession session, String rootUrl, String url) static String
ResolveRelative.resolveRootUrl
(KeycloakSession session, String rootUrl) abstract jakarta.ws.rs.core.Response
BrowserHistoryHelper.saveResponseAndRedirect
(KeycloakSession session, AuthenticationSessionModel authSession, jakarta.ws.rs.core.Response response, boolean actionRequest, HttpRequest httpRequest) protected boolean
BrowserHistoryHelper.shouldReplaceBrowserHistory
(boolean actionRequest, KeycloakSession session) static boolean
MtlsHoKTokenUtil.verifyTokenBindingWithClientCertificate
(AccessToken token, HttpRequest request, KeycloakSession session) ModifierConstructorDescriptionAuthenticationFlowURLHelper
(KeycloakSession session, RealmModel realm, jakarta.ws.rs.core.UriInfo uriInfo) -
Uses of KeycloakSession in org.keycloak.services.x509
Modifier and TypeMethodDescriptionApacheProxySslClientCertificateLookupFactory.create
(KeycloakSession session) DefaultClientCertificateLookupFactory.create
(KeycloakSession session) HaProxySslClientCertificateLookupFactory.create
(KeycloakSession session) NginxProxySslClientCertificateLookupFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.sessions
Modifier and TypeMethodDescriptionDisabledStickySessionEncoderProvider.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.social.bitbucket
Modifier and TypeMethodDescriptionBitbucketIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescriptionBitbucketIdentityProvider
(KeycloakSession session, OAuth2IdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.facebook
Modifier and TypeMethodDescriptionFacebookIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescriptionFacebookIdentityProvider
(KeycloakSession session, FacebookIdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.github
Modifier and TypeMethodDescriptionGitHubIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescriptionGitHubIdentityProvider
(KeycloakSession session, OAuth2IdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.gitlab
Modifier and TypeMethodDescriptionGitLabIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescriptionGitLabIdentityProvider
(KeycloakSession session, OIDCIdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.google
Modifier and TypeMethodDescriptionGoogleIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescriptionGoogleIdentityProvider
(KeycloakSession session, GoogleIdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.instagram
Modifier and TypeMethodDescriptionInstagramIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescriptionInstagramIdentityProvider
(KeycloakSession session, OAuth2IdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.linkedin
Modifier and TypeMethodDescriptionLinkedInIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) Deprecated.LinkedInOIDCIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescriptionLinkedInIdentityProvider
(KeycloakSession session, OAuth2IdentityProviderConfig config) Deprecated.LinkedInOIDCIdentityProvider
(KeycloakSession session, OIDCIdentityProviderConfig config) LinkedInPublicKeyLoader
(KeycloakSession session, OIDCIdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.microsoft
Modifier and TypeMethodDescriptionMicrosoftIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescriptionMicrosoftIdentityProvider
(KeycloakSession session, OAuth2IdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.openshift
Modifier and TypeMethodDescriptionOpenshiftV3IdentityProviderFactory.create
(KeycloakSession keycloakSession, IdentityProviderModel identityProviderModel) OpenshiftV4IdentityProviderFactory.create
(KeycloakSession keycloakSession, IdentityProviderModel identityProviderModel) ModifierConstructorDescriptionOpenshiftV3IdentityProvider
(KeycloakSession session, OpenshiftV3IdentityProviderConfig config) OpenshiftV4IdentityProvider
(KeycloakSession session, OpenshiftV4IdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.paypal
Modifier and TypeMethodDescriptionPayPalIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescriptionPayPalIdentityProvider
(KeycloakSession session, PayPalIdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.social.stackoverflow
Modifier and TypeMethodDescriptionStackoverflowIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) ModifierConstructorDescription -
Uses of KeycloakSession in org.keycloak.social.twitter
Modifier and TypeFieldDescriptionprotected final KeycloakSession
TwitterIdentityProvider.Endpoint.session
Modifier and TypeMethodDescriptionTwitterIdentityProviderFactory.create
(KeycloakSession session, IdentityProviderModel model) jakarta.ws.rs.core.Response
TwitterIdentityProvider.retrieveToken
(KeycloakSession session, FederatedIdentityModel identity) ModifierConstructorDescriptionEndpoint
(KeycloakSession session, IdentityProvider.AuthenticationCallback callback, EventBuilder event, TwitterIdentityProvider provider) TwitterIdentityProvider
(KeycloakSession session, OAuth2IdentityProviderConfig config) -
Uses of KeycloakSession in org.keycloak.storage
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractStorageManager.session
protected KeycloakSession
ClientStorageManager.session
protected KeycloakSession
RoleStorageManager.session
Modifier and TypeMethodDescriptionImportRealmFromRepresentationEvent.getSession()
Deprecated.LegacyStoreMigrateRepresentationEvent.getSession()
LegacyStoreSyncEvent.getSession()
PartialImportRealmFromRepresentationEvent.getSession()
Deprecated.SetDefaultsForNewRealm.getSession()
Modifier and TypeMethodDescriptionUserStorageProviderFactory.create
(KeycloakSession session, ComponentModel model) called per Keycloak transaction.static RealmModel
ImportRealmFromRepresentationEvent.fire
(KeycloakSession session, RealmRepresentation rep) Deprecated.static void
LegacyStoreMigrateRepresentationEvent.fire
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) static void
LegacyStoreSyncEvent.fire
(KeycloakSession session, RealmModel realm, boolean removed) static PartialImportResults
PartialImportRealmFromRepresentationEvent.fire
(KeycloakSession session, PartialImportRepresentation rep, RealmModel realm) Deprecated.static void
SetDefaultsForNewRealm.fire
(KeycloakSession session, RealmModel realm) static <T> Stream<T>
ClientStorageManager.getEnabledStorageProviders
(KeycloakSession session, RealmModel realm, Class<T> type) static <T> Stream<T>
RoleStorageManager.getEnabledStorageProviders
(KeycloakSession session, RealmModel realm, Class<T> type) static ClientStorageProvider
ClientStorageManager.getStorageProvider
(KeycloakSession session, RealmModel realm, String componentId) static RoleStorageProvider
RoleStorageManager.getStorageProvider
(KeycloakSession session, RealmModel realm, String componentId) static ClientStorageProvider
ClientStorageManager.getStorageProviderInstance
(KeycloakSession session, ClientStorageProviderModel model, ClientStorageProviderFactory factory) static RoleStorageProvider
RoleStorageManager.getStorageProviderInstance
(KeycloakSession session, RoleStorageProviderModel model, RoleStorageProviderFactory factory) static <T> Stream<T>
ClientStorageManager.getStorageProviders
(KeycloakSession session, RealmModel realm, Class<T> type) static <T> Stream<T>
RoleStorageManager.getStorageProviders
(KeycloakSession session, RealmModel realm, Class<T> type) static <T> Stream<RoleStorageProviderModel>
RoleStorageManager.getStorageProviders
(RealmModel realm, KeycloakSession session, Class<T> type) static boolean
ClientStorageManager.hasEnabledStorageProviders
(KeycloakSession session, RealmModel realm, Class<?> type) void
OnCreateComponent.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) void
UserStorageManager.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) default void
UserStorageProviderFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) Called when UserStorageProviderModel is created.void
OnUpdateComponent.onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) void
UserStorageManager.onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) static UserCache
UserStorageUtil.userCache
(KeycloakSession session) static UserFederatedStorageProvider
UserStorageUtil.userFederatedStorage
(KeycloakSession session) static UserProvider
UserStoragePrivateUtil.userLocalStorage
(KeycloakSession session) default void
UserStorageProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) ModifierConstructorDescriptionAbstractStorageManager
(KeycloakSession session, Class<? extends ProviderFactory> factoryTypeClass, Class<ProviderType> providerTypeClass, Function<ComponentModel, StorageProviderModelType> toStorageProviderModelTypeFunction, String configScope) ClientScopeStorageManager
(KeycloakSession session) ClientStorageManager
(KeycloakSession session, long clientStorageProviderTimeout) GroupStorageManager
(KeycloakSession session) ImportRealmFromRepresentationEvent
(KeycloakSession session, RealmRepresentation realmRepresentation) Deprecated.LegacyStoreMigrateRepresentationEvent
(KeycloakSession session, RealmModel realm, RealmRepresentation rep, boolean skipUserDependent) LegacyStoreSyncEvent
(KeycloakSession session, RealmModel realm, boolean removed) PartialImportRealmFromRepresentationEvent
(KeycloakSession session, PartialImportRepresentation rep, RealmModel realm) Deprecated.RoleStorageManager
(KeycloakSession session, long roleStorageProviderTimeout) SetDefaultsForNewRealm
(KeycloakSession session, RealmModel realmModel) UserStorageManager
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.storage.adapter
Modifier and TypeFieldDescriptionprotected KeycloakSession
AbstractUserAdapter.session
protected KeycloakSession
AbstractUserAdapterFederatedStorage.session
ModifierConstructorDescriptionAbstractUserAdapter
(KeycloakSession session, RealmModel realm, ComponentModel storageProviderModel) AbstractUserAdapterFederatedStorage
(KeycloakSession session, RealmModel realm, ComponentModel storageProviderModel) InMemoryUserAdapter
(KeycloakSession session, RealmModel realm, String id) Streams
(KeycloakSession session, RealmModel realm, ComponentModel storageProviderModel) Streams
(KeycloakSession session, RealmModel realm, ComponentModel storageProviderModel) Deprecated. -
Uses of KeycloakSession in org.keycloak.storage.client
Modifier and TypeMethodDescriptionClientStorageProviderFactory.create
(KeycloakSession session, ComponentModel model) called per Keycloak transaction.default void
ClientStorageProviderFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) Called when ClientStorageProviderModel is created.default void
ClientStorageProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) ModifierConstructorDescriptionAbstractClientStorageAdapter
(KeycloakSession session, RealmModel realm, ClientStorageProviderModel component) AbstractReadOnlyClientStorageAdapter
(KeycloakSession session, RealmModel realm, ClientStorageProviderModel component) -
Uses of KeycloakSession in org.keycloak.storage.clientscope
Modifier and TypeMethodDescriptionClientScopeStorageProviderFactory.create
(KeycloakSession session, ComponentModel model) called per Keycloak transaction.default void
ClientScopeStorageProviderFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) Called when ClientScopeStorageProviderFactory is created.default void
ClientScopeStorageProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) -
Uses of KeycloakSession in org.keycloak.storage.datastore
Modifier and TypeMethodDescriptionLegacyDatastoreProviderFactory.create
(KeycloakSession session) LegacyExportImportManager.importAuthenticationFlows
(KeycloakSession session, RealmModel newRealm, RealmRepresentation rep) static void
LegacyExportImportManager.importFederatedUser
(KeycloakSession session, RealmModel newRealm, UserRepresentation userRep) static void
LegacyExportImportManager.importRealmAuthorizationSettings
(RealmRepresentation rep, RealmModel newRealm, KeycloakSession session) static void
LegacyExportImportManager.importUserFederationProvidersAndMappers
(KeycloakSession session, RealmRepresentation rep, RealmModel newRealm) ModifierConstructorDescriptionLegacyDatastoreProvider
(LegacyDatastoreProviderFactory factory, KeycloakSession session) LegacyExportImportManager
(KeycloakSession session) LegacyMigrationManager
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.storage.group
Modifier and TypeMethodDescriptionGroupStorageProviderFactory.create
(KeycloakSession session, ComponentModel model) called per Keycloak transaction.default void
GroupStorageProviderFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) Called when GroupStorageProviderModel is created.default void
GroupStorageProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) -
Uses of KeycloakSession in org.keycloak.storage.jpa
Modifier and TypeMethodDescriptionJpaUserFederatedStorageProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionJpaUserFederatedStorageProvider
(KeycloakSession session, jakarta.persistence.EntityManager em) -
Uses of KeycloakSession in org.keycloak.storage.ldap
Modifier and TypeMethodDescriptionLDAPStorageProviderFactory.create
(KeycloakSession session, ComponentModel model) static LDAPIdentityStore
LDAPIdentityStoreRegistry.createLdapIdentityStore
(KeycloakSession session, LDAPConfig cfg) Create LDAPIdentityStore to be cached in the local registryprotected Map<ComponentModel,
LDAPConfigDecorator> LDAPStorageProviderFactory.getLDAPConfigDecorators
(KeycloakSession session, ComponentModel ldapModel) LDAPIdentityStoreRegistry.getLdapStore
(KeycloakSession session, ComponentModel ldapModel, Map<ComponentModel, LDAPConfigDecorator> configDecorators) protected UserModel
LDAPStorageProvider.importUserFromLDAP
(KeycloakSession session, RealmModel realm, LDAPObject ldapUser) void
LDAPStorageProviderFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) void
LDAPStorageProviderFactory.onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) void
LDAPStorageProviderFactory.preRemove
(KeycloakSession session, RealmModel realm, ComponentModel model) void
LDAPStorageProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) ModifierConstructorDescriptionLDAPStorageProvider
(LDAPStorageProviderFactory factory, KeycloakSession session, ComponentModel model, LDAPIdentityStore ldapIdentityStore) -
Uses of KeycloakSession in org.keycloak.storage.ldap.idm.store.ldap
Modifier and TypeMethodDescriptionstatic LDAPContextManager
LDAPContextManager.create
(KeycloakSession session, LDAPConfig connectionProperties) ModifierConstructorDescriptionLDAPContextManager
(KeycloakSession session, LDAPConfig connectionProperties) LDAPIdentityStore
(KeycloakSession session, LDAPConfig config) LDAPOperationManager
(KeycloakSession session, LDAPConfig config) -
Uses of KeycloakSession in org.keycloak.storage.ldap.mappers
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractLDAPStorageMapper.session
Modifier and TypeMethodDescriptionprotected void
UserAttributeLDAPStorageMapper.checkDuplicateEmail
(String userModelAttrName, String email, RealmModel realm, KeycloakSession session, UserModel user) protected void
UserAttributeLDAPStorageMapper.checkDuplicateUsername
(String userModelAttrName, String username, RealmModel realm, KeycloakSession session, UserModel user) AbstractLDAPStorageMapperFactory.create
(KeycloakSession session, ComponentModel model) LDAPStorageMapperFactory.create
(KeycloakSession session, ComponentModel model) called per Keycloak transaction.default void
LDAPStorageMapperFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) Called when UserStorageProviderModel is created.void
CertificateLDAPStorageMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) void
FullNameLDAPStorageMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) void
HardcodedAttributeMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) void
HardcodedLDAPAttributeMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) void
HardcodedLDAPGroupStorageMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) void
HardcodedLDAPRoleStorageMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) default void
LDAPStorageMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) void
UserAttributeLDAPStorageMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) -
Uses of KeycloakSession in org.keycloak.storage.ldap.mappers.membership.group
Modifier and TypeMethodDescriptionvoid
GroupLDAPStorageMapperFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) void
GroupLDAPStorageMapperFactory.onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) void
GroupLDAPStorageMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) -
Uses of KeycloakSession in org.keycloak.storage.ldap.mappers.membership.role
Modifier and TypeMethodDescriptionvoid
RoleLDAPStorageMapperFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) void
RoleLDAPStorageMapperFactory.onUpdate
(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) void
RoleLDAPStorageMapperFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) -
Uses of KeycloakSession in org.keycloak.storage.managers
Modifier and TypeMethodDescriptionstatic void
UserStorageSyncManager.notifyToRefreshPeriodicSync
(KeycloakSession session, RealmModel realm, UserStorageProviderModel provider, boolean removed) static void
UserStorageSyncManager.notifyToRefreshPeriodicSyncAll
(KeycloakSession session, RealmModel realm, boolean removed) static void
UserStorageSyncManager.notifyToRefreshPeriodicSyncSingle
(KeycloakSession session, RealmModel realm, ComponentModel component, boolean removed) -
Uses of KeycloakSession in org.keycloak.storage.role
Modifier and TypeMethodDescriptionRoleStorageProviderFactory.create
(KeycloakSession session, ComponentModel model) called per Keycloak transaction.default void
RoleStorageProviderFactory.onCreate
(KeycloakSession session, RealmModel realm, ComponentModel model) Called when RoleStorageProviderModel is created.default void
RoleStorageProviderFactory.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel config) -
Uses of KeycloakSession in org.keycloak.theme
Modifier and TypeMethodDescriptionClasspathThemeProviderFactory.create
(KeycloakSession session) ClasspathThemeResourceProviderFactory.create
(KeycloakSession session) DefaultThemeManagerFactory.create
(KeycloakSession session) DefaultThemeSelectorProviderFactory.create
(KeycloakSession session) FolderThemeProviderFactory.create
(KeycloakSession sessions) JarThemeProviderFactory.create
(KeycloakSession session) ModifierConstructorDescriptionDefaultThemeManager
(DefaultThemeManagerFactory factory, KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.theme.freemarker
Modifier and TypeMethodDescriptionDefaultFreeMarkerProviderFactory.create
(KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.timer
-
Uses of KeycloakSession in org.keycloak.timer.basic
ModifierConstructorDescriptionBasicTimerProvider
(KeycloakSession session, Timer timer, int transactionTimeout, BasicTimerProviderFactory factory) -
Uses of KeycloakSession in org.keycloak.transaction
Modifier and TypeMethodDescriptiondefault JtaTransactionManagerLookup
JtaTransactionManagerLookup.create
(KeycloakSession session) static void
AsyncResponseTransaction.finishAsyncResponseInTransaction
(KeycloakSession session, jakarta.ws.rs.container.AsyncResponse responseToFinishInTransaction, jakarta.ws.rs.core.Response responseToSend) This method creates a new AsyncResponseTransaction instance that resumes provided AsyncResponseresponseToFinishInTransaction
with given ResponseresponseToSend
. -
Uses of KeycloakSession in org.keycloak.truststore
-
Uses of KeycloakSession in org.keycloak.url
Modifier and TypeMethodDescriptionDefaultHostnameProviderFactory.create
(KeycloakSession session) FixedHostnameProviderFactory.create
(KeycloakSession session) Deprecated.RequestHostnameProviderFactory.create
(KeycloakSession session) Deprecated.ModifierConstructorDescriptionDefaultHostnameProvider
(KeycloakSession session, URI frontendUri, URI adminUri, boolean forceBackendUrlToFrontendUrl) FixedHostnameProvider
(KeycloakSession session, boolean alwaysHttps, String globalHostname, int httpPort, int httpsPort) Deprecated. -
Uses of KeycloakSession in org.keycloak.userprofile
Modifier and TypeFieldDescriptionprotected final KeycloakSession
AbstractUserProfileProvider.session
protected final KeycloakSession
DefaultAttributes.session
Modifier and TypeMethodDescriptionprotected UserProfileMetadata
AbstractUserProfileProvider.configureUserProfile
(UserProfileMetadata metadata, KeycloakSession session) Sub-types can override this method to customize how contextual profile metadata is configured at runtime.protected UserProfileMetadata
DeclarativeUserProfileProvider.configureUserProfile
(UserProfileMetadata metadata, KeycloakSession session) AbstractUserProfileProvider.create
(KeycloakSession session) protected abstract U
AbstractUserProfileProvider.create
(KeycloakSession session, Map<UserProfileContext, UserProfileMetadata> metadataRegistry) Subclasses can override this method to create their instances ofUserProfileProvider
.protected UserProfileProvider
DeclarativeUserProfileProvider.create
(KeycloakSession session, Map<UserProfileContext, UserProfileMetadata> metadataRegistry) void
DeclarativeUserProfileProvider.validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) ModifierConstructorDescriptionAbstractUserProfileProvider
(KeycloakSession session, Map<UserProfileContext, UserProfileMetadata> contextualMetadataRegistry) AttributeContext
(UserProfileContext context, KeycloakSession session, Map.Entry<String, List<String>> attribute, UserModel user, AttributeMetadata metadata, Attributes attributes) DeclarativeUserProfileProvider
(KeycloakSession session, Map<UserProfileContext, UserProfileMetadata> metadataRegistry, String defaultRawConfig, UPConfig parsedDefaultRawConfig) DefaultAttributes
(UserProfileContext context, Map<String, ?> attributes, UserModel user, UserProfileMetadata profileMetadata, KeycloakSession session) DefaultUserProfile
(UserProfileMetadata metadata, Attributes attributes, Function<Attributes, UserModel> userCreator, UserModel user, KeycloakSession session) LegacyAttributes
(UserProfileContext context, Map<String, ?> attributes, UserModel user, UserProfileMetadata profileMetadata, KeycloakSession session) -
Uses of KeycloakSession in org.keycloak.userprofile.config
Modifier and TypeMethodDescriptionUPConfigUtils.validate
(KeycloakSession session, UPConfig config) Validate object representation of the configuration. -
Uses of KeycloakSession in org.keycloak.utils
Modifier and TypeMethodDescriptionstatic void
CRLUtils.check
(X509Certificate[] certs, X509CRL crl, KeycloakSession session) Check the signature on CRL and check if 1st certificate from the chain ((The actual certificate from the client)) is valid and not available on CRL.OCSPProvider.check
(KeycloakSession session, X509Certificate cert, X509Certificate issuerCertificate) Requests certificate revocation status using OCSP.OCSPProvider.check
(KeycloakSession session, X509Certificate cert, X509Certificate issuerCertificate, URI responderURI, X509Certificate responderCert, Date date) Requests certificate revocation status using OCSP.OCSPProvider.check
(KeycloakSession session, X509Certificate cert, X509Certificate issuerCertificate, Date date, X509Certificate responderCert) Requests certificate revocation status using OCSP.protected abstract OCSPProvider.OCSPRevocationStatus
OCSPProvider.check
(KeycloakSession session, X509Certificate cert, X509Certificate issuerCertificate, List<URI> responderURIs, X509Certificate responderCert, Date date) Requests certificate revocation status using OCSP.static <T> Consumer<? super T>
ServicesUtils.consumeWithTimeBound
(KeycloakSession session, long timeout, Consumer<T> func) Deprecated.static boolean
CredentialHelper.createOTPCredential
(KeycloakSession session, RealmModel realm, UserModel user, String totpCode, OTPCredentialModel credentialModel) Create OTP credential either in userStorage or local storage (Keycloak DB)static void
CredentialHelper.deleteOTPCredential
(KeycloakSession session, RealmModel realm, UserModel user, String credentialId) static Map<String,
AccessToken.Access> RoleResolveUtil.getAllResolvedClientRoles
(KeycloakSession session, ClientSessionContext clientSessionCtx) Object (but can be empty map) containing all the user's client roles of all clients.CredentialHelper.getConfigurableAuthenticatorFactory
(KeycloakSession session, String providerId) protected byte[]
OCSPProvider.getEncodedOCSPResponse
(KeycloakSession session, byte[] encodedOCSPReq, URI responderUri) static AccessToken.Access
RoleResolveUtil.getResolvedClientRoles
(KeycloakSession session, ClientSessionContext clientSessionCtx, String clientId, boolean createIfMissing) Object (possibly null) containing all the user's client roles of client specified by clientId.static AccessToken.Access
RoleResolveUtil.getResolvedRealmRoles
(KeycloakSession session, ClientSessionContext clientSessionCtx, boolean createIfMissing) Object (possibly null) containing all the user's realm roles.static boolean
LockObjectsForModification.isEnabled
(KeycloakSession session, Class<?> model) static <V> V
LockObjectsForModification.lockRealmsForModification
(KeycloakSession session, LockObjectsForModification.CallableWithoutThrowingAnException<V> callable) static <V> V
LockObjectsForModification.lockUserSessionsForModification
(KeycloakSession session, LockObjectsForModification.CallableWithoutThrowingAnException<V> callable) static void
CredentialHelper.setAlternativeCredential
(KeycloakSession session, String type, RealmModel realm) static void
CredentialHelper.setOrReplaceAuthenticationRequirement
(KeycloakSession session, RealmModel realm, String type, AuthenticationExecutionModel.Requirement requirement, AuthenticationExecutionModel.Requirement currentRequirement) static void
CredentialHelper.setRequiredCredential
(KeycloakSession session, String type, RealmModel realm) ServicesUtils.timeBound
(KeycloakSession session, long timeout, Function<T, ? extends Stream<R>> func) Deprecated.static <T,
R> Function<? super T, R> ServicesUtils.timeBoundOne
(KeycloakSession session, long timeout, Function<T, R> func) Deprecated. -
Uses of KeycloakSession in org.keycloak.validate
Modifier and TypeMethodDescriptiondefault Validator
SimpleValidator.create
(KeycloakSession session) default ValidationResult
ValidatorFactory.validateConfig
(KeycloakSession session, ValidatorConfig config) Validates the given validation config.static ValidationResult
Validators.validateConfig
(KeycloakSession session, String id, ValidatorConfig config) static Validator
Validators.validator
(KeycloakSession session, String id) Look-up up for a built-in or registeredValidator
with the given validatorId.static ValidatorFactory
Validators.validatorFactory
(KeycloakSession session, String id) Look-up for a built-in or registeredValidatorFactory
with the given validatorId.ModifierConstructorDescriptionValidationContext
(KeycloakSession session) Creates a newValidationContext
with aKeycloakSession
.protected
ValidationContext
(KeycloakSession session, Set<ValidationError> errors) Creates a newValidationContext
.Validators
(KeycloakSession session) Creates a newValidators
instance with the givenKeycloakSession
. -
Uses of KeycloakSession in org.keycloak.validate.validators
Modifier and TypeMethodDescriptionAbstractNumberValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) LengthValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) LocalDateValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) OptionsValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) PatternValidator.validateConfig
(KeycloakSession session, ValidatorConfig config) -
Uses of KeycloakSession in org.keycloak.validation
Modifier and TypeMethodDescriptionDefaultValidationContext.getSession()
ValidationContext.getSession()
Modifier and TypeMethodDescriptionDefaultClientValidationProviderFactory.create
(KeycloakSession session) static void
ValidationUtil.validateClient
(KeycloakSession session, ClientModel client, boolean create, ValidationUtil.ErrorHandler errorHandler) static void
ValidationUtil.validateClient
(KeycloakSession session, ClientModel client, OIDCClientRepresentation oidcClient, boolean create, ValidationUtil.ErrorHandler errorHandler) ModifierConstructorDescriptionClientValidationContext
(ValidationContext.Event event, KeycloakSession session, ClientModel objectToValidate) DefaultValidationContext
(ValidationContext.Event event, KeycloakSession session, T objectToValidate) OIDCContext
(ValidationContext.Event event, KeycloakSession session, ClientModel objectToValidate, OIDCClientRepresentation oidcClient) -
Uses of KeycloakSession in org.keycloak.vault
Modifier and TypeMethodDescriptionFilesKeystoreVaultProviderFactory.create
(KeycloakSession session) FilesPlainTextVaultProviderFactory.create
(KeycloakSession session) protected String
AbstractVaultProviderFactory.getRealmName
(KeycloakSession session) Obtains the name of realm from theKeycloakSession
.
PasswordUtil.isConfigured()