Java SDK API Samples21 minutes to read
All PAM360 APIs can be accessed through the Java SDK based on the provided user role in PAM360, empowering the development of custom applications to perform required operations efficiently. Sample codes for all supported API methods within the PAM360 Java SDK are provided here for reference along with the relevant SDK exceptions. You can also refer to the to the Java document to learn more about in detail. Sample Codes for REST API using Java SDK1. Resource OperationsClass - Resource Constructor - Resource(PAMService service, APIRequestHandler rest) Description - Creates a resource entity class instance containing resource related functions with the PAMService.
2. Access Control OperationsClass - AccessControl Constructor - AccessControl(PAMService service, APIRequestHandler rest) Description - Creates an access control entity class instance containing access control related functions.
3. Account OperationsClass - Account Constructor - Account(PAMService service, APIRequestHandler rest) Description - Creates an account entity class instance containing accounts related operations.
4. Password OperationsClass - Password Constructor - Password(PAMService service, APIRequestHandler rest) Description - Creates a password entity class instance containing the password related operations.
5. User OperationsClass - User Constructor - User(PAMService service, APIRequestHandler rest) Description - Creates a user entity class instance containing the user related operations.
6. Resource Group OperationsClass - ResourceGroup Constructor - ResourceGroup(PAMService service, APIRequestHandler rest) Description - Creates a resource group class instance containing the resource group related operations.
7. Audit OperationsClass - Audit Constructor - Audit(PAMService service, APIRequestHandler rest) Description - Creates an audit entity class instance with the audit related operation.
Java SDK ExceptionsWhenever the API returns an error response, the response will be an instance of any one of the following exception classes based on the type of exception.
All other exceptions, such as SDK anomalies and other unexpected behaviors, are thrown under the SDKException class. Related Document | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||