| Package | Description |
|---|---|
| com.duosecurity | |
| com.duosecurity.service |
| Modifier and Type | Method and Description |
|---|---|
Client |
Client.Builder.build()
Build the client object.
|
String |
Client.createAuthUrl(String username,
String state)
Constructs a string which can be used to redirect the client browser to Duo for 2FA.
|
Token |
Client.exchangeAuthorizationCodeFor2FAResult(String duoCode,
String username)
Verifies the duoCode returned by Duo and exchanges it for a
Token which contains
information pertaining to the auth. |
Token |
Client.exchangeAuthorizationCodeFor2FAResult(String duoCode,
TokenValidator validator)
Verifies the duoCode returned by Duo and exchanges it for a
Token which contains
information pertaining to the auth. |
static URL |
Utils.getAndValidateUrl(String host,
String file)
Creates and validates URL made from host.
|
HealthCheckResponse |
Client.healthCheck()
Checks if Duo is healthy and available for 2FA.
|
com.auth0.jwt.interfaces.DecodedJWT |
TokenValidator.validateAndDecode(String jwt) |
com.auth0.jwt.interfaces.DecodedJWT |
DuoIdTokenValidator.validateAndDecode(String jwt)
Validate the provided jwt token against the expected values of the claims, as described above.
|
static void |
Utils.validateHost(String host)
Validates that the host is not empty or null.
|
| Constructor and Description |
|---|
Client(String clientId,
String clientSecret,
String apiHost,
String redirectUri)
Deprecated.
The constructors are deprecated.
Prefer the
Client.Builder for instantiating Clients |
Client(String clientId,
String clientSecret,
String apiHost,
String redirectUri,
String[] userCaCerts)
Deprecated.
The constructors are deprecated.
Prefer the
Client.Builder for instantiating Clients |
| Modifier and Type | Method and Description |
|---|---|
HealthCheckResponse |
DuoConnector.duoHealthcheck(String clientId,
String clientAssertion)
Send Health Check request.
|
TokenResponse |
DuoConnector.exchangeAuthorizationCodeFor2FAResult(String userAgent,
String grantType,
String duoCode,
String redirectUri,
String clientAssertionType,
String clientAssertion)
Send request to exchange duoCode for an encoded JWT.
|
| Constructor and Description |
|---|
DuoConnector(String apiHost,
String[] caCerts)
DuoConnector Constructor.
|
Copyright © 2021. All rights reserved.