Class SimpleKeyboard
- java.lang.Object
-
- org.jboss.as.domain.management.security.password.simple.SimpleKeyboard
-
-
Constructor Summary
Constructors Constructor Description SimpleKeyboard()SimpleKeyboard(InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinit(InputStream is)intsequence(String word, int start)Detects sequence of keys in word.booleansiblings(String word, int index)Detects if char next to index is its sibling.booleansiblings(String word, int index, int isSiblingIndex)Just asKeyboard.siblings(String, int), but it accepts index of second char that is a subject to test.
-
-
-
Constructor Detail
-
SimpleKeyboard
public SimpleKeyboard()
-
SimpleKeyboard
public SimpleKeyboard(InputStream is)
-
-
Method Detail
-
init
protected void init(InputStream is)
-
siblings
public boolean siblings(String word, int index)
Description copied from interface:KeyboardDetects if char next to index is its sibling.
-
siblings
public boolean siblings(String word, int index, int isSiblingIndex)
Description copied from interface:KeyboardJust asKeyboard.siblings(String, int), but it accepts index of second char that is a subject to test. This allows to detect patterns of keystrokes.
-
sequence
public int sequence(String word, int start)
Description copied from interface:KeyboardDetects sequence of keys in word. IfKeyboard.siblings(String, int)returns true for 'index', Than this method will return at least '1' - indcating that after 'index' there is sequence of chars. Example:String word = "ASDFG"; Keyboard.sequence(word,0) == word.length()-1;
-
-