Codota Logo
LDAPStoreConfiguration
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now