updateCredential
Updates an existing credential with the supplied CredentialElements according to the requested action. This method supports the updating of initial passwords and security question/answer credentials, and supports profiles for the following credentials types:
-
CRED_ELEMENT_TYPE_PASSWORD
-
CRED_ELEMENT_TYPE_SQ
For Java:
void updateCredential(CredentialId credId, String action, Entry[] inputRequirementData)
throws NoSuchCredentialException, MalformedDataException, InvalidStateException, SessionException, ManagementException, LocalizedRemoteException;
For C++:
void updateCredential(
CredentialId *credId, TString action, EntryTemplateVector *inputRequirementData)
Parameters:
-
credId—Credential identifier.
-
action—Update process requested for the specified Credential.
-
inputRequirementData—List of data collected based on the profile to be used during the credential update (for details, see Input Requirements).
Exceptions:
-
NoSuchCredentialException—if the specified credential is not found or not valid.
-
InvalidStateException—if the credential update violates the credential's lifecycle.
-
SessionException—if there is no valid session (such as session not opened or timed out).
-
ManagementException—if an internal failure occurs.
-
LocalizedRemoteException— (thrown by the Web service layer) only when the most severe, unexpected, SOAP-level failures occur.
-
MalformedDataException—if the input data was malformed.