| Modifier and Type | Method and Description |
|---|---|
KeycloakSession |
AbstractAuthenticationFlowContext.getSession()
Current session
|
KeycloakSession |
FormContext.getSession()
Current session
|
KeycloakSession |
RequiredActionContext.getSession() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FormAction.configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user)
Is this FormAction configured for the current user?
|
boolean |
Authenticator.configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user)
Is this authenticator configured for this user.
|
void |
FormAction.setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user)
Set actions to configure authenticator
|
void |
Authenticator.setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user)
Set actions to configure authenticator
|
| Modifier and Type | Method and Description |
|---|---|
KeycloakSession |
AuthorizationProvider.getKeycloakSession() |
| Constructor and Description |
|---|
AuthorizationProvider(KeycloakSession session,
StoreFactory storeFactory) |
AuthorizationProvider(KeycloakSession session,
StoreFactory storeFactory,
Executor scheduller) |
| Modifier and Type | Method and Description |
|---|---|
KeycloakSession |
AuthenticationRequest.getSession() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractIdentityProvider.backchannelLogout(KeycloakSession session,
UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm) |
void |
IdentityProvider.backchannelLogout(KeycloakSession session,
UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm) |
IdentityProviderMapper |
AbstractIdentityProviderMapper.create(KeycloakSession session) |
T |
AbstractIdentityProviderFactory.create(KeycloakSession session) |
void |
AbstractIdentityProvider.importNewUser(KeycloakSession session,
RealmModel realm,
UserModel user,
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.
|
void |
AbstractIdentityProviderMapper.importNewUser(KeycloakSession session,
RealmModel realm,
UserModel user,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context) |
javax.ws.rs.core.Response |
AbstractIdentityProvider.keycloakInitiatedBrowserLogout(KeycloakSession session,
UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm) |
javax.ws.rs.core.Response |
IdentityProvider.keycloakInitiatedBrowserLogout(KeycloakSession session,
UserSessionModel userSession,
javax.ws.rs.core.UriInfo uriInfo,
RealmModel realm)
Called when a Keycloak application initiates a logout through the browser.
|
void |
AbstractIdentityProvider.preprocessFederatedIdentity(KeycloakSession session,
RealmModel realm,
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.
|
void |
AbstractIdentityProviderMapper.preprocessFederatedIdentity(KeycloakSession session,
RealmModel realm,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context) |
javax.ws.rs.core.Response |
IdentityProvider.retrieveToken(KeycloakSession session,
FederatedIdentityModel identity)
Returns a
Response 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 |
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.
|
| Constructor and Description |
|---|
AuthenticationRequest(KeycloakSession session,
RealmModel realm,
ClientSessionModel clientSession,
org.jboss.resteasy.spi.HttpRequest httpRequest,
javax.ws.rs.core.UriInfo uriInfo,
String state,
String redirectUri) |
| Constructor and Description |
|---|
EventBuilder(RealmModel realm,
KeycloakSession session,
org.keycloak.common.ClientConnection clientConnection) |
| Modifier and Type | Method and Description |
|---|---|
PasswordHashProvider |
Pbkdf2PasswordHashProvider.create(KeycloakSession session) |
static UserCredentialValueModel |
PasswordHashManager.encode(KeycloakSession session,
PasswordPolicy passwordPolicy,
String rawPassword) |
static UserCredentialValueModel |
PasswordHashManager.encode(KeycloakSession session,
RealmModel realm,
String rawPassword) |
static boolean |
PasswordHashManager.verify(KeycloakSession session,
PasswordPolicy passwordPolicy,
String password,
UserCredentialValueModel credential) |
static boolean |
PasswordHashManager.verify(KeycloakSession session,
RealmModel realm,
String password,
UserCredentialValueModel credential) |
| Modifier and Type | Method and Description |
|---|---|
UserFederationSyncResult |
UserFederationMapper.syncDataFromFederationProviderToKeycloak(UserFederationMapperModel mapperModel,
UserFederationProvider federationProvider,
KeycloakSession session,
RealmModel realm)
Sync data from federation storage to Keycloak.
|
UserFederationSyncResult |
UserFederationMapper.syncDataFromKeycloakToFederationProvider(UserFederationMapperModel mapperModel,
UserFederationProvider federationProvider,
KeycloakSession session,
RealmModel realm)
Sync data from Keycloak back to federation storage
|
| Modifier and Type | Method and Description |
|---|---|
static void |
MigrationModelManager.migrate(KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
MigrateTo2_0_0.migrate(KeycloakSession session) |
void |
MigrateTo1_4_0.migrate(KeycloakSession session) |
void |
MigrateTo1_8_0.migrate(KeycloakSession session) |
void |
MigrationTo1_2_0_CR1.migrate(KeycloakSession session) |
void |
MigrateTo1_7_0.migrate(KeycloakSession session) |
void |
MigrateTo1_9_0.migrate(KeycloakSession session) |
void |
MigrateTo1_5_0.migrate(KeycloakSession session) |
void |
MigrateTo1_9_2.migrate(KeycloakSession session) |
void |
MigrateTo1_6_0.migrate(KeycloakSession session) |
void |
MigrateTo1_3_0.migrate(KeycloakSession session) |
| Modifier and Type | Field and Description |
|---|---|
protected KeycloakSession |
UserFederationManager.session |
| Modifier and Type | Method and Description |
|---|---|
KeycloakSession |
KeycloakSessionFactory.create() |
KeycloakSession |
RealmModel.RealmRemovedEvent.getKeycloakSession() |
KeycloakSession |
RealmModel.ClientRemovedEvent.getKeycloakSession() |
KeycloakSession |
RoleContainerModel.RoleRemovedEvent.getKeycloakSession() |
KeycloakSession |
UserModel.UserRemovedEvent.getKeycloakSession() |
| Modifier and Type | Method and Description |
|---|---|
UserFederationProvider |
UserFederationProviderFactory.create(KeycloakSession session)
This method is never called and is only an artifact of ProviderFactory.
|
UserFederationProvider |
UserFederationProviderFactory.getInstance(KeycloakSession session,
UserFederationProviderModel model)
called per Keycloak transaction.
|
void |
KeycloakSessionTask.run(KeycloakSession session) |
static void |
ImpersonationConstants.setupImpersonationService(KeycloakSession session,
RealmModel realm) |
PasswordPolicy.Error |
PasswordPolicy.validate(KeycloakSession session,
String user,
String password) |
PasswordPolicy.Error |
PasswordPolicy.validate(KeycloakSession session,
UserModel user,
String password) |
CredentialValidationOutput |
UserProvider.validCredentials(KeycloakSession session,
RealmModel realm,
UserCredentialModel... input) |
CredentialValidationOutput |
UserFederationManager.validCredentials(KeycloakSession session,
RealmModel realm,
UserCredentialModel... input) |
boolean |
UserProvider.validCredentials(KeycloakSession session,
RealmModel realm,
UserModel user,
List<UserCredentialModel> input) |
boolean |
UserFederationManager.validCredentials(KeycloakSession session,
RealmModel realm,
UserModel user,
List<UserCredentialModel> input) |
boolean |
UserProvider.validCredentials(KeycloakSession session,
RealmModel realm,
UserModel user,
UserCredentialModel... input) |
boolean |
UserFederationManager.validCredentials(KeycloakSession session,
RealmModel realm,
UserModel user,
UserCredentialModel... input) |
| Constructor and Description |
|---|
UserFederationManager(KeycloakSession session) |
| Constructor and Description |
|---|
DBLockManager(KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
UserSessionPersisterProvider |
DisabledUserSessionPersisterProvider.create(KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
static ClientModel |
RepresentationToModel.createClient(KeycloakSession session,
RealmModel realm,
ClientRepresentation resourceRep,
boolean addDefaultRoles)
Does not create scope or role mappings!
|
static ClientTemplateModel |
RepresentationToModel.createClientTemplate(KeycloakSession session,
RealmModel realm,
ClientTemplateRepresentation resourceRep) |
static UserModel |
RepresentationToModel.createUser(KeycloakSession session,
RealmModel newRealm,
UserRepresentation userRep) |
static UserModel |
KeycloakModelUtils.findUserByNameOrEmail(KeycloakSession session,
RealmModel realm,
String username)
Try to find user by username or email
|
static UserFederationProviderFactory |
KeycloakModelUtils.getFederationProviderFactory(KeycloakSession session,
UserFederationProviderModel model) |
static UserFederationProvider |
KeycloakModelUtils.getFederationProviderInstance(KeycloakSession session,
UserFederationProviderModel model) |
static void |
RepresentationToModel.importRealm(KeycloakSession session,
RealmRepresentation rep,
RealmModel newRealm) |
static boolean |
CredentialValidation.validateHashedCredential(KeycloakSession session,
RealmModel realm,
UserModel user,
String unhashedCredValue,
UserCredentialValueModel credential) |
static boolean |
CredentialValidation.validCredentials(KeycloakSession session,
RealmModel realm,
UserModel user,
List<UserCredentialModel> credentials)
Must validate all credentials.
|
static boolean |
CredentialValidation.validCredentials(KeycloakSession session,
RealmModel realm,
UserModel user,
UserCredentialModel... credentials)
Must validate all credentials.
|
static boolean |
CredentialValidation.validPassword(KeycloakSession session,
RealmModel realm,
UserModel user,
String password)
Will update password if hash iteration policy has changed
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
ClientInstallationProvider.generateInstallation(KeycloakSession session,
RealmModel realm,
ClientModel client,
URI serverBaseUri) |
LoginProtocol |
LoginProtocol.setSession(KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
T |
ProviderFactory.create(KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BruteForceProtector.isTemporarilyDisabled(KeycloakSession session,
RealmModel realm,
UserModel user) |
static ClientSessionCode |
ClientSessionCode.parse(String code,
KeycloakSession session) |
static ClientSessionCode |
ClientSessionCode.parse(String code,
KeycloakSession session,
RealmModel realm) |
static ClientSessionCode.ParseResult |
ClientSessionCode.parseResult(String code,
KeycloakSession session,
RealmModel realm) |
| Constructor and Description |
|---|
UserManager(KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
ScheduledTask.run(KeycloakSession session) |
Copyright © 2016 JBoss by Red Hat. All rights reserved.