|
|||||||||||
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 | |
---|---|
Request |
connect(AccountMO account,
boolean resetPassword,
boolean resetPasswordOnCheckin,
java.util.Date scheduledTime,
java.lang.String justification)
This API connects a credential to an Account. |
void |
disconnect()
This API disconnects the credential from the account. |
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. |
ServiceInfo |
getServiceInfo()
This method gets the credential service 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. |
void |
update(Credential credential,
ServiceInfo credService)
This API updates the credential with the given credential value object and the credential service. |
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 Request connect(AccountMO account, boolean resetPassword, boolean resetPasswordOnCheckin, java.util.Date scheduledTime, java.lang.String justification) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
account
- specifies the account that to be connectedresetPassword
- This parameter indicates whether the password for the
credential and the account should be reset after the
credential is connected to the account.resetPasswordOnCheckin
- This parameter indicates whether the password should be reset
when the credential is checked in. This parameter is only
applicable when the credential is explicitly set to exclusive.
If the credential is set to use the global setting, or not
exclusive, or not shared, then this parameter is ignored.scheduledTime
- This parameter specifies the scheduled starting time of the
process. If it is null, the process will start immediately. In
case this method is invoked remotely, passing this parameter
as the current date or time of the client machine is not a
safe technique to use, since the date or time of the client
machine might not be the same as the date or time of the
Security Identity Manager server machine.justification
- This parameter specifies the justification for connecting the
credential to the account. The justification will appear in
audit trail.
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.
java.rmi.RemoteException
public void disconnect() 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 update(Credential credential, ServiceInfo credService) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
credential
- specifies the Credential object that contains the changes that
are to be made.credService
- The credential service for the credential. This value is
ignored if it is null or the credential is associated with an
account.
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 occur if 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 for the following conditions.
If the credential parameter is null
or if the credential does not have a distinguished name.
If the credService is not null but the service UID in
credService is null or an empty string.ServiceInfo
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 ServiceInfo getServiceInfo() 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 credential service for the credential. ApplicationException
- This exception is thrown if the API cannot retrieve the credential service 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 |