Package org.wildfly.security.sasl.otp
Class OTP
java.lang.Object
org.wildfly.security.sasl.otp.OTP
Constants for the OTP SASL mechanism.
- Author:
- Farah Juma
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final charstatic final intstatic final StringDirect OTP format (either hexadecimal or multi-word OTP).static final Stringstatic final Stringstatic final Stringstatic final StringA predicate which is true when the given callback type and prompt match the OTP new password callback.static final BiPredicate<Class<? extends ChoiceCallback>,String> A predicate which is true when the given callback type and prompt match the OTP new password format type choice callback.A predicate which is true when the given callback type and prompt match the OTP password callback.static final BiPredicate<Class<? extends ChoiceCallback>,String> A predicate which is true when the given callback type and prompt match the OTP password format type choice callback.static final BiPredicate<Class<? extends ChoiceCallback>,String> A predicate which is true when the given callback type and prompt match the OTP response type choice callback.static final intstatic final intstatic final intstatic final intstatic final Stringstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final StringPass phrase format.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OneTimePasswordAlgorithmSpecgetOTPParameterSpec(String algorithm, String seed, int sequenceNumber) Get the parameter specification for a one-time password generated using the given algorithm, seed, and sequence number.
-
Field Details
-
OTP_PREFIX
- See Also:
-
EXT
- See Also:
-
MD5
- See Also:
-
SHA1
- See Also:
-
SHA256
- See Also:
-
SHA384
- See Also:
-
SHA512
- See Also:
-
HEX_RESPONSE
- See Also:
-
WORD_RESPONSE
- See Also:
-
INIT_HEX_RESPONSE
- See Also:
-
INIT_WORD_RESPONSE
- See Also:
-
PASS_PHRASE
Pass phrase format.- See Also:
-
DIRECT_OTP
Direct OTP format (either hexadecimal or multi-word OTP).- See Also:
-
MAX_AUTHORIZATION_ID_LENGTH
public static final int MAX_AUTHORIZATION_ID_LENGTH- See Also:
-
MAX_AUTHENTICATION_ID_LENGTH
public static final int MAX_AUTHENTICATION_ID_LENGTH- See Also:
-
MIN_SEED_LENGTH
public static final int MIN_SEED_LENGTH- See Also:
-
MAX_SEED_LENGTH
public static final int MAX_SEED_LENGTH- See Also:
-
DEFAULT_SEED_LENGTH
public static final int DEFAULT_SEED_LENGTH- See Also:
-
MIN_PASS_PHRASE_LENGTH
public static final int MIN_PASS_PHRASE_LENGTH- See Also:
-
MAX_PASS_PHRASE_LENGTH
public static final int MAX_PASS_PHRASE_LENGTH- See Also:
-
MIN_SEQUENCE_NUMBER
public static final int MIN_SEQUENCE_NUMBER- See Also:
-
DEFAULT_SEQUENCE_NUMBER
public static final int DEFAULT_SEQUENCE_NUMBER- See Also:
-
DICTIONARY_DELIMITER
public static final char DICTIONARY_DELIMITER- See Also:
-
DICTIONARY_SIZE
public static final int DICTIONARY_SIZE- See Also:
-
RESPONSE_TYPE_PROMPT
- See Also:
-
PASSWORD_FORMAT_TYPE_PROMPT
- See Also:
-
NEW_PASSWORD_FORMAT_TYPE_PROMPT
- See Also:
-
PASSWORD_PROMPT
- See Also:
-
NEW_PASSWORD_PROMPT
- See Also:
-
MATCH_RESPONSE_CHOICE
A predicate which is true when the given callback type and prompt match the OTP response type choice callback. -
MATCH_PASSWORD_FORMAT_CHOICE
public static final BiPredicate<Class<? extends ChoiceCallback>,String> MATCH_PASSWORD_FORMAT_CHOICEA predicate which is true when the given callback type and prompt match the OTP password format type choice callback. -
MATCH_NEW_PASSWORD_FORMAT_CHOICE
public static final BiPredicate<Class<? extends ChoiceCallback>,String> MATCH_NEW_PASSWORD_FORMAT_CHOICEA predicate which is true when the given callback type and prompt match the OTP new password format type choice callback. -
MATCH_PASSWORD
A predicate which is true when the given callback type and prompt match the OTP password callback. -
MATCH_NEW_PASSWORD
A predicate which is true when the given callback type and prompt match the OTP new password callback.
-
-
Constructor Details
-
OTP
public OTP()
-
-
Method Details
-
getOTPParameterSpec
public static OneTimePasswordAlgorithmSpec getOTPParameterSpec(String algorithm, String seed, int sequenceNumber) Get the parameter specification for a one-time password generated using the given algorithm, seed, and sequence number.- Parameters:
algorithm- the algorithmseed- the seedsequenceNumber- the sequence number- Returns:
- the parameter specification for a one-time password generated using the given algorithm, seed, and sequence number
-