public class PasswordManagerPro
extends java.lang.Object
String passwd;
try
{
passwd = PasswordManagerPro.getInstance().retrievePassword("oracle-db1","scott","Fetch default account password for testing."));
}
catch (PMPException pmpEx)
{
// Catch and process exception
}
finally
{
// Clean up
}
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String reason,
java.lang.Boolean updateRemote)
Changes the password of the specified account on the resource in the PMP repository.
|
void |
changePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String reason,
java.lang.Boolean updateRemote,
java.lang.String ticketId)
Changes the password of the specified account on the resource in the PMP repository.
|
void |
changePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String newPassword,
java.lang.String reason,
java.lang.Boolean updateRemote)
Changes the password of the specified account on the resource in the PMP repository.
|
void |
changePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String newPassword,
java.lang.String reason,
java.lang.Boolean updateRemote,
java.lang.String ticketId)
Changes the password of the specified account on the resource in the PMP repository.
|
void |
createResource(java.lang.String resourceName,
java.lang.String resourceType,
java.lang.String accountName,
java.lang.String notes)
Creates a new resource in the PMP repository with the specified resource name and resource type and adds the specified user account.
|
void |
createResource(java.lang.String resourceName,
java.lang.String resourceType,
java.lang.String accountName,
java.lang.String newPassword,
java.lang.String notes)
Creates a new resource in the PMP repository with the specified resource name and resource type and adds the specified user account.
|
static PasswordManagerPro |
getInstance()
Returns the singleton instance of PasswordManagerPro for the calling application to invoke the password management actions.
|
java.lang.String |
retrievePassword(java.lang.String resourceName,
java.lang.String accountName)
Returns the password of the specified account on the resource from the PMP repository.
|
java.lang.String |
retrievePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String reason)
Returns the password of the specified account on the resource from the PMP repository.
|
java.lang.String |
retrievePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String reason,
java.lang.String ticketId)
Returns the password of the specified account on the resource from the PMP repository.
|
public static PasswordManagerPro getInstance()
public java.lang.String retrievePassword(java.lang.String resourceName,
java.lang.String accountName)
throws PMPException
resourceName - the name of the resource whose account's password is to be retrievedaccountName - the name of the account whose password is to be retrievedPMPExceptionpublic java.lang.String retrievePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String reason)
throws PMPException
resourceName - the name of the resource whose account's password is to be retrievedaccountName - the name of the account whose password is to be retrievedreason - the reason for retrieving the password by the calling applicationPMPExceptionpublic java.lang.String retrievePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String reason,
java.lang.String ticketId)
throws PMPException
resourceName - the name of the resource whose account's password is to be retrievedaccountName - the name of the account whose password is to be retrievedreason - the reason for retrieving the password by the calling applicationticketId - the Request ID from a Help Desk software for retrieving the passwordPMPExceptionpublic void changePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String reason,
java.lang.Boolean updateRemote)
throws PMPException
resourceName - the name of the resource whose account's password is to be changedaccountName - the name of the account whose password is to be changedreason - the reason for changing the password by the calling applicationupdateRemote - if true then the password change is performed in the corresponding remote system too; otherwise only in the PMP repositoryPMPExceptionpublic void changePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String newPassword,
java.lang.String reason,
java.lang.Boolean updateRemote)
throws PMPException
resourceName - the name of the resource whose account's password is to be changedaccountName - the name of the account whose password is to be changednewPassword - the new password that is to be set for the accountreason - the reason for changing the password by the calling applicationupdateRemote - if true then the password change is performed in the corresponding remote system too; otherwise only in the PMP repositoryPMPExceptionpublic void changePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String reason,
java.lang.Boolean updateRemote,
java.lang.String ticketId)
throws PMPException
resourceName - the name of the resource whose account's password is to be changedaccountName - the name of the account whose password is to be changedreason - the reason for changing the password by the calling applicationupdateRemote - if true then the password change is performed in the corresponding remote system too; otherwise only in the PMP repositoryticketId - the Request ID from a Help Desk software for resetting the passwordPMPExceptionpublic void changePassword(java.lang.String resourceName,
java.lang.String accountName,
java.lang.String newPassword,
java.lang.String reason,
java.lang.Boolean updateRemote,
java.lang.String ticketId)
throws PMPException
resourceName - the name of the resource whose account's password is to be changedaccountName - the name of the account whose password is to be changednewPassword - the new password that is to be set for the accountreason - the reason for changing the password by the calling applicationupdateRemote - if true then the password change is performed in the corresponding remote system too; otherwise only in the PMP repositoryticketId - the Request ID from a Help Desk software for resetting the passwordPMPExceptionpublic void createResource(java.lang.String resourceName,
java.lang.String resourceType,
java.lang.String accountName,
java.lang.String newPassword,
java.lang.String notes)
throws PMPException
resourceName - the name of the resource to be createdresourceType - the type of the resource to be created. If the resource type does not exist, it is created in the PMP application by this APIaccountName - the name of the user account to be created under the resourcenewPassword - the password to be set for the accountnotes - general notes about the user accountPMPExceptionpublic void createResource(java.lang.String resourceName,
java.lang.String resourceType,
java.lang.String accountName,
java.lang.String notes)
throws PMPException
resourceName - the name of the resource to be createdresourceType - the type of the resource to be created. If the resource type does not exist, it is created in the PMP application by this APIaccountName - the name of the user account to be created under the resourcenotes - general notes about the user accountPMPExceptionCopyright © 2016 AdventNet Inc. All Rights Reserved.