org.passay.CzechSequenceData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of passay Show documentation
Show all versions of passay Show documentation
Library for checking that a password complies with a custom set of rules
The newest version!
/* See LICENSE for licensing and NOTICE for copyright. */
package org.passay;
/**
* Czech character sequence.
*
* @author Middleware Services + Martin Pechacek
*/
public enum CzechSequenceData implements SequenceData {
/**
* Alphabetical sequence.
*/
Alphabetical(
"ILLEGAL_ALPHABETICAL_SEQUENCE",
new CharacterSequence[] {
new CharacterSequence("aábcčdďeěéfghiíjklmnňoópqrřsštťuúůvwxyýzž", "AÁBCČDĎEĚÉFGHIÍJKLMNŇOÓPQRŘSŠTŤUÚŮVWXYÝZŽ"),
});
/**
* Error code.
*/
private final String errorCode;
/**
* Character sequences.
*/
private final CharacterSequence[] sequences;
/**
* Creates new czech sequence data.
*
* @param code Error code used for message resolution.
* @param seqs One or more character sequences.
*/
CzechSequenceData(final String code, final CharacterSequence[] seqs)
{
errorCode = code;
sequences = seqs;
}
@Override
public String getErrorCode()
{
return errorCode;
}
@Override
public CharacterSequence[] getSequences()
{
return sequences;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy