Tabnine Logo
LDAPStoreConfiguration
Code IndexAdd Tabnine to your IDE (free)

How to use
LDAPStoreConfiguration
in
com.nimbusds.infinispan.persistence.ldap

Best Java code snippets using com.nimbusds.infinispan.persistence.ldap.LDAPStoreConfiguration (Showing top 4 results out of 315)

origin: com.nimbusds/infinispan-ldap-cache-store

@Override
public LDAPStoreConfiguration create() {
    // This method should construct a new instance of a
  // LDAPStoreConfiguration object. There will be one instance
  // per cache.
  return new LDAPStoreConfiguration(
    purgeOnStartup,
    fetchPersistentState,
    ignoreModifications,
    async.create(),
    singletonStore.create(),
    preload,
    shared,
    properties);
}
origin: com.nimbusds/infinispan-ldap-cache-store

@Override
@SuppressWarnings("unchecked")
public void init(final InitializationContext ctx) {
  // This method will be invoked by the PersistenceManager during initialization. The InitializationContext
  // contains:
  // - this CacheLoader's configuration
  // - the cache to which this loader is applied. Your loader might want to use the cache's name to construct
  //   cache-specific identifiers
  // - the StreamingMarshaller that needs to be used to marshall/unmarshall the entries
  // - a TimeService which the loader can use to determine expired entries
  // - a ByteBufferFactory which needs to be used to construct ByteBuffers
  // - a MarshalledEntryFactory which needs to be used to construct entries from the data retrieved by the loader
  super.init(ctx);
  
  this.config = ctx.getConfiguration();
  Loggers.MAIN_LOG.info("[IL0201] LDAP store configuration properties for cache {}:", getCacheName());
  config.log();
  Loggers.MAIN_LOG.debug("[IL0202] Loading LDAP entry transformer class {} for cache {}...",
    config.ldapDirectory.entryTransformer,
    getCacheName());
  ldapEntryTransformer = loadEntryTransformerClass(config.ldapDirectory.entryTransformer);
  marshalledEntryFactory = (MarshalledEntryFactory<K, V>)ctx.getMarshalledEntryFactory();
  Loggers.MAIN_LOG.info("[IL0203] Initialized LDAP external store for cache {}", getCacheName());
}

origin: com.nimbusds/infinispan-cachestore-ldap

@Override
@SuppressWarnings("unchecked")
public void init(final InitializationContext ctx) {
  // This method will be invoked by the PersistenceManager during initialization. The InitializationContext
  // contains:
  // - this CacheLoader's configuration
  // - the cache to which this loader is applied. Your loader might want to use the cache's name to construct
  //   cache-specific identifiers
  // - the StreamingMarshaller that needs to be used to marshall/unmarshall the entries
  // - a TimeService which the loader can use to determine expired entries
  // - a ByteBufferFactory which needs to be used to construct ByteBuffers
  // - a MarshalledEntryFactory which needs to be used to construct entries from the data retrieved by the loader
  super.init(ctx);
  
  this.config = ctx.getConfiguration();
  Loggers.MAIN_LOG.info("[IL0201] LDAP store configuration properties for cache {}:", getCacheName());
  config.log();
  Loggers.MAIN_LOG.debug("[IL0202] Loading LDAP entry transformer class {} for cache {}...",
    config.ldapDirectory.entryTransformer,
    getCacheName());
  ldapEntryTransformer = loadEntryTransformerClass(config.ldapDirectory.entryTransformer);
  marshalledEntryFactory = (MarshalledEntryFactory<K, V>)ctx.getMarshalledEntryFactory();
  Loggers.MAIN_LOG.info("[IL0203] Initialized LDAP external store for cache {}", getCacheName());
}

origin: com.nimbusds/infinispan-cachestore-ldap

@Override
public LDAPStoreConfiguration create() {
    // This method should construct a new instance of a
  // LDAPStoreConfiguration object. There will be one instance
  // per cache.
  return new LDAPStoreConfiguration(
    purgeOnStartup,
    fetchPersistentState,
    ignoreModifications,
    async.create(),
    singletonStore.create(),
    preload,
    shared,
    properties);
}
com.nimbusds.infinispan.persistence.ldapLDAPStoreConfiguration

Javadoc

LDAP store configuration. It's typically derived from a Java key / value properties file. The configuration is stored as public fields which become immutable (final) after their initialisation.

Example LDAP store configuration:

 
# LDAP server details # 
ldapServer.url = ldap://localhost:1389 ldap://remotehost:1389 
ldapServer.selectionAlgorithm = FAILOVER 
ldapServer.connectTimeout = 100 
ldapServer.responseTimeout = 100 
ldapServer.security = NONE 
ldapServer.trustSelfSignedCerts = false 
ldapServer.connectionPoolSize = 5 
ldapServer.connectionPoolInitialSize = 0 
ldapServer.connectionPoolMaxWaitTime = 100 
ldapServer.connectionMaxAge = 0 
# LDAP user details # 
ldapUser.dn = cn=Directory Manager 
ldapUser.password = secret 
# LDAP directory entry details # 
ldapDirectory.baseDN = ou=authorizations, dc=wonderland, dc=net 
ldapDirectory.pageSize = 500 
ldapDirectory.entryTransformer = com.nimbusds.infinispan.persistence.ldap.UserEntityTransformer 
ldapDirectory.queryExecutor = com.nimbusds.infinispan.persistence.ldap.UserQueryExecutor 
# Custom LDAP sever trust and key store # 
customTrustStore.enable = false 
customTrustStore.file = 
customTrustStore.password = 
customTrustStore.type = 
customKeyStore.enable = false 
customKeyStore.file = 
customKeyStore.password = 
customKeyStore.type = 

Most used methods

  • <init>
  • log

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now