public class LengthRestriction extends PasswordRestriction
Constructor and Description |
---|
LengthRestriction(int desiredLength) |
Modifier and Type | Method and Description |
---|---|
boolean |
pass(String password)
Check if password passes restriction.
|
getMessage
public LengthRestriction(int desiredLength)
desiredLength
- public boolean pass(String password)
PasswordRestriction
pass
in class PasswordRestriction
Copyright © 2013 JBoss by Red Hat. All rights reserved.