Zoominfo API Auth Java Client
Maven Dependency
<dependency>
    <groupId>com.zoominfo</groupId>
    <artifactId>api-auth-java-client</artifactId>
    <version>1.0</version>
</dependency>
 
Get access token using client id and private key
AuthClient authClient = new AuthClient("username", "clientId", "privateKey");
String accessToken = authClient.getAccessToken();
 
Get access token using username and password
AuthClient authClient = new AuthClient("username", "password");
String accessToken = authClient.getAccessToken();