com.nulabinc.zxcvbn.Context Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zxcvbn Show documentation
Show all versions of zxcvbn Show documentation
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);
}
}