Class HOTPRegistration


public class HOTPRegistration extends LocalMechanism
A class representing a users HMAC-based One-time Password registration.
  • Method Details

    • toJson

      public JSONObject toJson()
      Get a JSON formatted representation of this HOTPRegistration. Example:
       {
           "mechanismURI" : "urn:ibm:security:authentication:asf:mechanism:hotp",
           "isEnrolled" : true
       }
       
      Overrides:
      toJson in class LocalMechanism
      Returns:
      A JSONObject representation of this HOTPRegistration.
      See Also:
    • isEnrolled

      public boolean isEnrolled()
      Get the enrolled status of this mechanism.
      Returns:
      A boolean to indicate if this mechanism is enrolled or not.