|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.apps.pim.CredentialMO
public class CredentialMO
Managed object representing a credential of an account.
Credential
,
Serialized FormConstructor Summary | |
---|---|
CredentialMO(PlatformContext platform,
javax.security.auth.Subject subject,
DistinguishedName name)
This API constructs the the managed object with a platform context, a subject, and the distinguished name of the object to manage. |
Method Summary | |
---|---|
AccountMO |
getAccount()
This API returns the account that is associated with this credential. |
CredentialLeaseMO |
getCredentialLease()
This API returns the credential lease held by the authenticated user for this credential. |
Credential |
getData()
This API returns a current snapshot of the credential. |
DistinguishedName |
getDistinguishedName()
Returns the distinguished name of the managed object |
java.lang.String |
getPassword()
This method gets the password for the credential. |
java.util.Collection<HistoricalPassword> |
getPasswordHistory()
This API gets the password history for the credential. |
void |
registerPassword(java.lang.String password)
This API registers the password for the credential. |
void |
remove()
This API removes the credential from the vault. |
void |
update(Credential credential)
This API updates the credential with the given credential value object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CredentialMO(PlatformContext platform, javax.security.auth.Subject subject, DistinguishedName name)
platform
- specifies the PlatformContext that holds platform connection information.subject
- specifies the Subject that represents the authenticated caller.name
- specifies the DistinguishedName of the credential.Method Detail |
---|
public DistinguishedName getDistinguishedName()
public Credential getData() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- This exception is thrown if the API cannot communicate with platform.
ApplicationException
- This exception is thrown if the API cannot retrieve data.public CredentialLeaseMO getCredentialLease() throws ApplicationException, AuthorizationException, java.rmi.RemoteException
java.rmi.RemoteException
- This exception is thrown if the API cannot communicate with the platform.
AuthorizationException
- This exception is thrown if the authenticated user is not authorized to search for the lease.
ApplicationException
- This exception is thrown if the API cannot obtain the credential lease.public void remove() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- This exception is thrown if the API cannot communicate with platform.
AuthorizationException
- This exception is thrown if the user
does not have the authority to remove the credential.
ApplicationException
- This exception is thrown if the credential is checked out or if an error occurs when removing the credential.public void update(Credential credential) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
credential
- specifies the
Credential object that contains the changes that need to be made.
java.rmi.RemoteException
- This exception is thrown if the API cannot communicate with the platform.
AuthorizationException
- This exception is thrown if the user is not authorized to change the credential.
ApplicationException
- This exception is thrown if the API cannot change the credential. This might
be caused by the account is removed by another client before this call.
This exception can also be thrown if the credential is for a system user,
and it is being changed from non-shared mode to shared mode.
java.lang.IllegalArgumentException
- This exception is thrown if credential parameter is null
or if the credential does not have a distinguished name.public void registerPassword(java.lang.String password) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
password
- This parameter specifies the password that is set for the credentials.
java.rmi.RemoteException
- This exception is thrown if the API cannot communicate with the platform.
AuthorizationException
- This exception is thrown if the user is not authorized to register the password for the credentials.
ApplicationException
- This exception is thrown if the API cannot register the password for the credentials.
java.lang.IllegalArgumentException
- This exception is thrown if the password parameter is nullpublic java.util.Collection<HistoricalPassword> getPasswordHistory() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- This exception is thrown if the API cannot communicate with the platform.
AuthorizationException
- This exception is thrown if the user is not authorized to get the password history for the credential.
ApplicationException
- This exception is thrown if the API cannot retrieve the password history for the credential.HistoricalPassword
public java.lang.String getPassword() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- This exception is thrown if this method cannot communicate with the platform.
AuthorizationException
- This exception is thrown if the user is
not authorized to
view the password. The user is not authorized to view the password when
one of the following conditions is met:ApplicationException
- This exception is thrown if the API cannot retrieve the password for the credential.public AccountMO getAccount() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- This exception is thrown if the API is unable to communicate with platform.
ApplicationException
- This exception is thrown if the API is unable to retrieve the account.
The exception can possibly be caused by
the account being removed by another client
before this call.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |