Class OneTimePasswordSpec

java.lang.Object
org.wildfly.security.password.spec.OneTimePasswordSpec
All Implemented Interfaces:
KeySpec, PasswordSpec

public final class OneTimePasswordSpec extends Object implements PasswordSpec
A PasswordSpec for a one-time password as defined in RFC 2289.
Author:
Farah Juma
  • Constructor Details

    • OneTimePasswordSpec

      public OneTimePasswordSpec(byte[] hash, String seed, int sequenceNumber)
      Construct a new instance.
      Parameters:
      hash - the hash bytes
      seed - the seed
      sequenceNumber - the sequence number
  • Method Details

    • 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
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object