Class TwoFactorAuthenticationMethod

java.lang.Object
org.netxms.client.users.TwoFactorAuthenticationMethod

public class TwoFactorAuthenticationMethod extends Object
Represents two-factor authentication method
  • Constructor Details

    • TwoFactorAuthenticationMethod

      public TwoFactorAuthenticationMethod(String name, String description, String driver, String configuration)
      Create new method.
      Parameters:
      name - method name
      description - method description
      driver - two-factor authentication driver to use
      configuration - method configuration
    • TwoFactorAuthenticationMethod

      public TwoFactorAuthenticationMethod(NXCPMessage msg)
      Get method definition from NXCP message.
      Parameters:
      msg - NXCP message
    • TwoFactorAuthenticationMethod

      public TwoFactorAuthenticationMethod(NXCPMessage msg, long baseId)
      Get method definition from NXCP message.
      Parameters:
      msg - NXCP message
      baseId - base field ID
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg)
      Fill NXCP message
      Parameters:
      msg - NXCP message
    • getDescription

      public String getDescription()
      Get method's description.
      Returns:
      method's description
    • setDescription

      public void setDescription(String description)
      Set description.
      Parameters:
      description - new description
    • getDriver

      public String getDriver()
      Get driver name.
      Returns:
      driver name
    • setDriver

      public void setDriver(String driver)
      Set driver name.
      Parameters:
      driver - new driver name
    • getConfiguration

      public String getConfiguration()
      Get method configuration (can be null if not received from server).
      Returns:
      method configuration or null
    • setConfiguration

      public void setConfiguration(String configuration)
      Set method configuration
      Parameters:
      configuration - new configuration
    • getName

      public String getName()
      Get method name.
      Returns:
      method name
    • isLoaded

      public boolean isLoaded()
      Check if method is loaded and can be used for authentication.
      Returns:
      true if method is loaded