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:
  • Constructor Details

    • OneTimePasswordAlgorithmSpec

      public OneTimePasswordAlgorithmSpec(String algorithm, String seed, int sequenceNumber)
      Construct a new instance.
      Parameters:
      algorithm - the OTP hash algorithm in "otp-" form (see RFC 2289)
      seed - the seed
      sequenceNumber - the sequence number
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Gets the OTP hash algorithm in "otp-" form.
      Returns:
      the algorithm
    • 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