Package org.netxms.client.users
Class TwoFactorAuthenticationMethod
java.lang.Object
org.netxms.client.users.TwoFactorAuthenticationMethod
Represents two-factor authentication method
- 
Constructor SummaryConstructorsConstructorDescriptionTwoFactorAuthenticationMethod(String name, String description, String driver, String configuration) Create new method.Get method definition from NXCP message.TwoFactorAuthenticationMethod(NXCPMessage msg, long baseId) Get method definition from NXCP message.
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP messageGet method configuration (can be null if not received from server).Get method's description.Get driver name.getName()Get method name.booleanisLoaded()Check if method is loaded and can be used for authentication.voidsetConfiguration(String configuration) Set method configurationvoidsetDescription(String description) Set description.voidSet driver name.
- 
Constructor Details- 
TwoFactorAuthenticationMethodpublic 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
 
- 
TwoFactorAuthenticationMethodGet method definition from NXCP message.- Parameters:
- msg- NXCP message
 
- 
TwoFactorAuthenticationMethodGet method definition from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base field ID
 
 
- 
- 
Method Details- 
fillMessageFill NXCP message- Parameters:
- msg- NXCP message
 
- 
getDescriptionGet method's description.- Returns:
- method's description
 
- 
setDescriptionSet description.- Parameters:
- description- new description
 
- 
getDriverGet driver name.- Returns:
- driver name
 
- 
setDriverSet driver name.- Parameters:
- driver- new driver name
 
- 
getConfigurationGet method configuration (can be null if not received from server).- Returns:
- method configuration or null
 
- 
setConfigurationSet method configuration- Parameters:
- configuration- new configuration
 
- 
getNameGet method name.- Returns:
- method name
 
- 
isLoadedpublic boolean isLoaded()Check if method is loaded and can be used for authentication.- Returns:
- true if method is loaded
 
 
-