public final class PAMService
extends java.lang.Object
This class acts as an entry point to SDK.
Contains instances of various PAM360 entities.
Any action you need to perform to an entity should be performed by getting the appropriate instance of that entity from PAMService.
The PAMService has instances for the entities: Resource, Account, AccessControl, User, Password ,ResourceGroup and Audit.
| Constructor and Description |
|---|
PAMService(ServiceConfiguration configurations,
java.lang.String authToken)
Default constructor
|
PAMService(ServiceConfiguration configurations,
java.lang.String authToken,
java.lang.String orgName)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
AccessControl |
getAccessControlInstance()
Get the instance of AccessControl entity.
|
Account |
getAccountInstance()
Get the instance of Account entity.
|
Audit |
getAuditInstance()
Get the instance of Audit entity.
|
Password |
getPasswordInstance()
Get the instance of Password entity.
|
ResourceGroup |
getResourceGroupInstance()
Get the instance of ResourceGroup entity.
|
Resource |
getResourceInstance()
Get the instance of Resource entity.
|
User |
getUserInstance()
Get the instance of User entity.
|
public PAMService(ServiceConfiguration configurations, java.lang.String authToken) throws SDKOperationFailedException, SDKInvalidArgumentException
configurations - instance of ServiceConfigurationauthToken - The Users RestAPI auth tokenSDKOperationFailedException - This exception along with the reason is thrown if PAMService instantiation failsSDKInvalidArgumentException - This exception is thrown if configurations have invalid or null datapublic PAMService(ServiceConfiguration configurations, java.lang.String authToken, java.lang.String orgName) throws SDKOperationFailedException, SDKInvalidArgumentException
configurations - instance of ServiceConfigurationauthToken - The Users RestAPI auth tokenorgName - The organization name to be accessedSDKOperationFailedException - This exception along with the reason is thrown if PAMService instantiation failsSDKInvalidArgumentException - This exception is thrown if configurations have invalid or null datapublic Resource getResourceInstance() throws SDKRegistrationException
Resource for accessing methods related to resource.SDKRegistrationException - if SDK is not Registeredpublic Account getAccountInstance() throws SDKRegistrationException
Account for accessing methods related to account.SDKRegistrationException - if SDK is not Registeredpublic User getUserInstance() throws SDKRegistrationException
User for accessing methods related to user.SDKRegistrationException - if SDK is not Registeredpublic AccessControl getAccessControlInstance() throws SDKRegistrationException
AccessControl for accessing methods related to access request.SDKRegistrationException - if SDK is not Registeredpublic Password getPasswordInstance() throws SDKRegistrationException
Password for accessing methods related to password.SDKRegistrationException - if SDK is not Registeredpublic Audit getAuditInstance() throws SDKRegistrationException
Audit for accessing methods related to audit.SDKRegistrationException - if SDK is not Registeredpublic ResourceGroup getResourceGroupInstance() throws SDKRegistrationException
Resource for accessing methods related to resource.SDKRegistrationException - if SDK is not Registered