public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static URL |
getAndValidateUrl(String host,
String file)
Creates and validates URL made from host.
|
static void |
validateHost(String host)
Validates that the host is not empty or null.
|
public static void validateHost(String host) throws DuoException
host - The api host provided by Duo in the admin panel.DuoException - For invalid hostspublic static URL getAndValidateUrl(String host, String file) throws DuoException
host - The api host provided by Duo in the admin panel.file - Endpoint to append to API HostDuoException - For malformed URLCopyright © 2021. All rights reserved.