Class OneTimePasswordSpec
java.lang.Object
org.wildfly.security.password.spec.OneTimePasswordSpec
- All Implemented Interfaces:
KeySpec,PasswordSpec
A
PasswordSpec for a one-time password as defined in RFC 2289.- Author:
- Farah Juma
-
Constructor Summary
ConstructorsConstructorDescriptionOneTimePasswordSpec(byte[] hash, String seed, int sequenceNumber) Construct a new instance. -
Method Summary
-
Constructor Details
-
OneTimePasswordSpec
Construct a new instance.- Parameters:
hash- the hash bytesseed- the seedsequenceNumber- the sequence number
-
-
Method Details
-
getHash
public byte[] getHash()Gets the hash.- Returns:
- the hash
-
getSeed
Gets the seed.- Returns:
- the seed
-
getSequenceNumber
public int getSequenceNumber()Gets the sequence number.- Returns:
- the sequence number
-
equals
-
hashCode
public int hashCode()
-