Class Code

java.lang.Object
com.yubico.yubikit.oath.Code

public class Code extends Object
A one-time OATH code, calculated from a Credential stored in a YubiKey.
  • Constructor Details

    • Code

      public Code(String value, long validFrom, long validUntil)
  • Method Details

    • getValue

      public final String getValue()
      Returns the String value, typically a 6-8 digit code.
    • getValidFrom

      public final long getValidFrom()
      Returns a UNIX timestamp in ms for when the validity period starts.
    • getValidUntil

      public final long getValidUntil()
      Returns a UNIX timestamp in ms for when the validity period ends.