This Java-based SDK easily connects with Saviynt's EIC, using EIC v5 APIs for smooth integration. It's user-friendly, with simple steps for connectivity, clear instructions, and a focus on security. Developers can make efficient and powerful solutions by using EIC v5 API features in this SDK.
Explore SDK Javadoc »
- User Management
- Account Management
- Dataset_values Management
To get started with the EIC SDK JAVA, follow these steps:
- Java Development Kit (JDK) version 8
- Apache Maven
- Update your Maven settings.xml file to include credentials for GitHub Packages, if you haven't already done so. You can follow the GitHub documentation for instructions on how to set up authentication for GitHub Packages in Maven.
You can include the EIC SDK JAVA in your Maven project by adding the following dependency to your pom.xml
file:
<dependency>
<groupId>io.github.vivek9237.eic.restsdk</groupId>
<artifactId>eic-sdk-java</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
NOTE: For more information, see EIC=SDK-JAVA Package
To run this project, you will need to add the following environment variables to your .env file
-
EIC_TENANT
EIC tenant name -
EIC_REFRESH_TOKEN
EIC API Refresh Token
This sample code demonstrates the usage of the EIC REST SDK. It initializes EicClient with tenant, username, and password, attempts to retrieve user information for a specified username.
import io.github.vivek9237.eic.restsdk.EicClient;
import java.util.logging.Logger;
import java.util.Map;
public class App {
Logger log = Logger.getLogger(SampleUsage.class.getName());
public static void main( String[] args )
{
try {
//Fetch all the environment variables
Map<String, String> envVariables = System.getenv();
// Creating an instance of the EicClient class with tenant, and refreshToken parameters
EicClient eicClient = new EicClient(envVariables.get("EIC_TENANT"), envVariables.get("EIC_REFRESH_TOKEN"));
// Attempting to retrieve user information for the username "admin"
System.out.println(eicClient.getUserByUsername("admin"));
} catch (Exception e) {
// Handling Exception by printing the stack trace
e.printStackTrace();
}
}
}
-
Add more API integration
-
Add ways to securely pass credentials
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
See also the list of contributors who have participated in this project.
We value your input! If you have any feedback, suggestions, or comments, please don't hesitate to share them with us. You can reach out to us at [email protected].
If you encounter any bugs, please report them by creating an issue here - Report Bugs
If you have a feature request, feel free to submit it here - Request New Features