org.keycloak.models.mongo.keycloak.adapters

## Class MongoUserProviderFactory

- java.lang.Object
- - org.keycloak.models.mongo.keycloak.adapters.MongoUserProviderFactory

- All Implemented Interfaces:
    UserProviderFactory, ProviderFactory<UserProvider>

      public class MongoUserProviderFactory
      extends Object
      implements UserProviderFactory

  KeycloakSessionFactory implementation based on MongoDB
  Author:
    Marek Posolda

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static org.jboss.logging.Logger` | `logger`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MongoUserProviderFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `UserProvider` | `create(KeycloakSession session)`
    `String` | `getId()`
    `void` | `init(Config.Scope config)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### logger

          protected static final org.jboss.logging.Logger logger

  - ### Constructor Detail

    - #### MongoUserProviderFactory

          public MongoUserProviderFactory()

  - ### Method Detail

    - #### getId

          public String getId()

      Specified by:
        `getId` in interface `ProviderFactory<UserProvider>`

    - #### init

          public void init(Config.Scope config)

      Specified by:
        `init` in interface `ProviderFactory<UserProvider>`

    - #### create

          public UserProvider create(KeycloakSession session)

      Specified by:
        `create` in interface `ProviderFactory<UserProvider>`

    - #### close

          public void close()

      Specified by:
        `close` in interface `ProviderFactory<UserProvider>`

Copyright © 2014. All Rights Reserved.