| Constructor and Description |
|---|
Builder(String clientId,
String clientSecret,
String apiHost,
String redirectUri)
Builder.
|
| Modifier and Type | Method and Description |
|---|---|
Client.Builder |
appendUserAgentInfo(String newUserAgent)
Optionally appends string to userAgent.
|
Client |
build()
Build the client object.
|
Client.Builder |
setCACerts(String[] userCaCerts)
Optionally use custom CA Certificates when validating connections to Duo.
|
Client.Builder |
setUseDuoCodeAttribute(boolean useDuoCodeAttribute)
Optionally toggle the returned authorization parameter to use duo_code vs code.
|
public Builder(String clientId, String clientSecret, String apiHost, String redirectUri)
clientId - This value is the client id provided by Duo in the admin panel.clientSecret - This value is the client secret provided by Duo in the admin panel.apiHost - This value is the api host provided by Duo in the admin panel.redirectUri - This value is the uri which Duo should redirect to after 2FA is completed.public Client build() throws DuoException
ClientDuoException - For problems building the clientpublic Client.Builder setCACerts(String[] userCaCerts)
userCaCerts - List of CA Certificates to usepublic Client.Builder setUseDuoCodeAttribute(boolean useDuoCodeAttribute)
useDuoCodeAttribute - true/false togglepublic Client.Builder appendUserAgentInfo(String newUserAgent)
newUserAgent - Additional info that will be added to the end of the user agent stringCopyright © 2021. All rights reserved.