com.tivoli.am.fim.registrations.local

Class TOTPRegistration

  • java.lang.Object
    • LocalMechanism
      • com.tivoli.am.fim.registrations.local.TOTPRegistration


  • public class TOTPRegistration
    extends LocalMechanism
    A class representing a users Time-based One-time Password registration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean isEnrolled()
      Get the enrolled status of this mechanism.
      JSONObject toJson()
      Get a JSON formatted representation of this TOTPRegistration.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toJson

        public JSONObject toJson()
        Get a JSON formatted representation of this TOTPRegistration. Example:
         {
             "mechanismURI" : "urn:ibm:security:authentication:asf:mechanism:totp",
             "isEnrolled" : true
         }
         
        Returns:
        A JSONObject representation of this TOTPRegistration.
        See Also:
        IBM JSONObject
      • isEnrolled

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