Class DuoClient
java.lang.Object
com.logicaldoc.enterprise.security.twofactorsauth.DuoClient
A client to communicate with Duo security
- Since:
- 8.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecutes an authorization callauthPasscode
(String username, String passcode) Authorizes using a passcode.Authorizes using the phone call.Authorizes using the push mechanism.Authorizes using the SMS.boolean
-
Constructor Details
-
DuoClient
-
-
Method Details
-
healthCheck
public boolean healthCheck() -
auth
Executes an authorization call- Parameters:
username
- the user identifier in Duofactor
- one of the available factors: passcode, sms, push, phonepasscode
- the passcodedevice
- optional device specification- Returns:
- allow, deny or the transaction ID in case of async invocation, null in case of error
-
authPasscode
Authorizes using a passcode. This method is synchronous.- Parameters:
username
- the user identifier in Duopasscode
- the passcode- Returns:
- allow, deny or null in case of error
-
authPush
Authorizes using the push mechanism. This method is synchronous.- Parameters:
username
- the user identifier in Duodevice
- the identifier of the device to use or put 'auto'- Returns:
- allow, deny or null in case of error
-
authSMS
Authorizes using the SMS. This method is asynchronous.- Parameters:
username
- the user identifier in Duodevice
- the identifier of the device to use or put 'auto'- Returns:
- allow, deny or null in case of error
-
authPhone
Authorizes using the phone call. This method is asynchronous.- Parameters:
username
- the user identifier in Duodevice
- the identifier of the device to use or put 'auto'- Returns:
- allow, deny or null in case of error
-
status
-