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

How to use
FileBasedUserManager
in
sockslib.server.manager

Best Java code snippets using sockslib.server.manager.FileBasedUserManager (Showing top 6 results out of 315)

origin: theotherp/nzbhydra2

public FileBasedUserManager(File storeFile, StoreType storeType) throws IOException {
  this.storeFile = checkNotNull(storeFile, "Argument [storeFile] may not be null");
  this.storeType = checkNotNull(storeType, "Argument [storeType] may not be null");
  loadFromFile();
}
origin: theotherp/nzbhydra2

@Override
public User check(String username, String password) {
  User user = find(username);
  if (user != null && user.getPassword() != null && user.getPassword().equals(password)) {
    return user;
  }
  return null;
}
origin: fengyouchao/sockslib

@Override
public User check(String username, String password) {
 User user = find(username);
 if (user != null && user.getPassword() != null && user.getPassword().equals(password)) {
  return user;
 }
 return null;
}
origin: fengyouchao/sockslib

public FileBasedUserManager(File storeFile, StoreType storeType) throws IOException {
 this.storeFile = checkNotNull(storeFile, "Argument [storeFile] may not be null");
 this.storeType = checkNotNull(storeType, "Argument [storeType] may not be null");
 loadFromFile();
}
origin: fengyouchao/sockslib

public FileBasedUserManager(String storeFile, boolean autoReload, long reloadAfter) throws
  IOException {
 storeFile = PathUtil.getAbstractPath(storeFile);
 this.storeFile = new File(storeFile);
 this.autoReload = autoReload;
 this.reloadAfter = reloadAfter;
 loadFromFile();
 if (this.autoReload) {
  autoReloadService = new AutoReloadService(this.reloadAfter);
  autoReloadService.start();
 }
}
origin: theotherp/nzbhydra2

public FileBasedUserManager(String storeFile, boolean autoReload, long reloadAfter) throws
    IOException {
  storeFile = PathUtil.getAbstractPath(storeFile);
  this.storeFile = new File(storeFile);
  this.autoReload = autoReload;
  this.reloadAfter = reloadAfter;
  loadFromFile();
  if (this.autoReload) {
    autoReloadService = new AutoReloadService(this.reloadAfter);
    autoReloadService.start();
  }
}
sockslib.server.managerFileBasedUserManager

Javadoc

The class FileBasedUserManager represents an user manager which can manage users in a file.

Most used methods

  • find
  • loadFromFile

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • 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
  • Menu (java.awt)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JTextField (javax.swing)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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