All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nulabinc.zxcvbn.Context Maven / Gradle / Ivy

Go to download

This is a java port of zxcvbn, which is a JavaScript password strength generator.

The newest version!
package com.nulabinc.zxcvbn;

import com.nulabinc.zxcvbn.matchers.Dictionary;
import com.nulabinc.zxcvbn.matchers.Keyboard;
import java.util.Collections;
import java.util.Map;

public class Context {

  private final Map dictionaryMap;

  private final Map keyboardMap;

  public Context(
      final Map dictionaryMap, final Map keyboardMap) {
    this.dictionaryMap = dictionaryMap;
    this.keyboardMap = keyboardMap;
  }

  public Map getDictionaryMap() {
    return Collections.unmodifiableMap(this.dictionaryMap);
  }

  public Map getKeyboardMap() {
    return Collections.unmodifiableMap(this.keyboardMap);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy