Class OneTimePasswordAlgorithmSpec
- java.lang.Object
-
- org.wildfly.security.password.spec.OneTimePasswordAlgorithmSpec
-
- All Implemented Interfaces:
Serializable
,AlgorithmParameterSpec
public final class OneTimePasswordAlgorithmSpec extends Object implements AlgorithmParameterSpec, Serializable
Algorithm parameter specification for one-time password types as defined in RFC 2289.- Author:
- Farah Juma
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
algorithm
private String
seed
private int
sequenceNumber
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description OneTimePasswordAlgorithmSpec(String algorithm, String seed, int sequenceNumber)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getAlgorithm()
Gets the OTP hash algorithm in "otp-" form. String
getSeed()
Gets the seed.int
getSequenceNumber()
Gets the sequence number.int
hashCode()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
algorithm
private final String algorithm
-
seed
private final String seed
-
sequenceNumber
private final int sequenceNumber
-
-