Class OneTimePasswordSpec
- java.lang.Object
-
- org.wildfly.security.password.spec.OneTimePasswordSpec
-
- All Implemented Interfaces:
KeySpec,PasswordSpec
public final class OneTimePasswordSpec extends Object implements PasswordSpec
APasswordSpecfor a one-time password as defined in RFC 2289.- Author:
- Farah Juma
-
-
Constructor Summary
Constructors Constructor Description OneTimePasswordSpec(byte[] hash, String seed, int sequenceNumber)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)byte[]getHash()Gets the hash.StringgetSeed()Gets the seed.intgetSequenceNumber()Gets the sequence number.inthashCode()
-
-
-
Constructor Detail
-
OneTimePasswordSpec
public OneTimePasswordSpec(byte[] hash, String seed, int sequenceNumber)Construct a new instance.- Parameters:
hash- the hash bytesseed- the seedsequenceNumber- the sequence number
-
-
Method Detail
-
getHash
public byte[] getHash()
Gets the hash.- Returns:
- the hash
-
getSeed
public String getSeed()
Gets the seed.- Returns:
- the seed
-
getSequenceNumber
public int getSequenceNumber()
Gets the sequence number.- Returns:
- the sequence number
-
-