Package org.netxms.client.users
Class TwoFactorAuthenticationMethod
java.lang.Object
org.netxms.client.users.TwoFactorAuthenticationMethod
Represents two-factor authentication method
-
Constructor Summary
ConstructorDescriptionTwoFactorAuthenticationMethod
(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 Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(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.boolean
isLoaded()
Check if method is loaded and can be used for authentication.void
setConfiguration
(String configuration) Set method configurationvoid
setDescription
(String description) Set description.void
Set driver name.
-
Constructor Details
-
TwoFactorAuthenticationMethod
public TwoFactorAuthenticationMethod(String name, String description, String driver, String configuration) Create new method.- Parameters:
name
- method namedescription
- method descriptiondriver
- two-factor authentication driver to useconfiguration
- method configuration
-
TwoFactorAuthenticationMethod
Get method definition from NXCP message.- Parameters:
msg
- NXCP message
-
TwoFactorAuthenticationMethod
Get method definition from NXCP message.- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
-
Method Details
-
fillMessage
Fill NXCP message- Parameters:
msg
- NXCP message
-
getDescription
Get method's description.- Returns:
- method's description
-
setDescription
Set description.- Parameters:
description
- new description
-
getDriver
Get driver name.- Returns:
- driver name
-
setDriver
Set driver name.- Parameters:
driver
- new driver name
-
getConfiguration
Get method configuration (can be null if not received from server).- Returns:
- method configuration or null
-
setConfiguration
Set method configuration- Parameters:
configuration
- new configuration
-
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
-