|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.apps.pim.CredentialLeaseManager
public class CredentialLeaseManager
This class provides credential lease administration capabilities. These capabilities include checking out credentials from vault, searching for credential leases, and checking in credentials.
Constructor Summary | |
---|---|
CredentialLeaseManager(PlatformContext platform,
javax.security.auth.Subject subject)
This constructor creates the manager with a platform context and a subject. |
Method Summary | |
---|---|
java.util.List<Request> |
checkin(java.util.List<DistinguishedName> leases)
This API provides the checkin function for multiple credentials. |
java.util.List<Request> |
checkinAll()
This API checks in all credentials that are checked out by the authenticated user. |
com.ibm.itim.pim.CheckoutResult |
checkout(CredentialComponent sharedAccess,
CredentialLease lease)
This API checks out a credential from the credential vault for shared access. |
com.ibm.itim.pim.CheckoutResult |
checkoutWithoutWorkflow(CredentialComponent sharedAccess,
CredentialLease lease)
This API synchronously checks out a credential from the credential vault for shared access. |
java.util.Collection<CredentialLeaseMO> |
getCredentialLeases(SearchResultsStatus resultStatus)
This API returns the credential leases held by the authenticated user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CredentialLeaseManager(PlatformContext platform, javax.security.auth.Subject subject)
platform
- This parameter specifies PlatformContext that holds the platform connection information.subject
- This parameter specifies Subject that represents the authenticated caller.
java.lang.IllegalArgumentException
- This exception is thrown if the platform or the subject parameter is null.Method Detail |
---|
public com.ibm.itim.pim.CheckoutResult checkout(CredentialComponent sharedAccess, CredentialLease lease) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
sharedAccess
- CredentialComponent This parameter defines a credential or a credential pool that is checked out for a
shared access. If this parameter is null, then IllegalArgumentException will be thrown.lease
- CredentialLease This value object defines the attributes that the credential lease will
have, such as "Justification" and "Credential Checkout Expiration Time".
java.rmi.RemoteException
- This exception is thrown if the API is unable to communicate with the platform.
AuthorizationException
- This exception is thrown if the user client is not authorized to check out the specified credential
or credential pool.
SchemaViolationException
- This exception is thrown if any of the attributes in the CredentialLease value object
violates the schema. The problem can be caused by an invalid attribute or
a required attribute that is missing entirely.
ApplicationException
- This exception is thrown if the user is unable to check out a credential or credential pool for the shared access.
This problem can occur when the credential or credential pool is already checked out by
another user.public com.ibm.itim.pim.CheckoutResult checkoutWithoutWorkflow(CredentialComponent sharedAccess, CredentialLease lease) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
sharedAccess
- CredentialComponent This parameter defines a credential or a
credential pool to be checked out for a shared access. If
this parameter is null, then IllegalArgumentException is
thrown.lease
- CredentialLease This value object defines the attributes that
the credential lease will have, such as "Justification" and
"Credential Checkout Expiration Time".
java.rmi.RemoteException
- This exception is thrown if the API is unable to
communicate with the platform.
AuthorizationException
- This exception is thrown if the user client is not
authorized to check out the specified credential or
credential pool.
SchemaViolationException
- This exception is thrown if any of the attributes in the
CredentialLease value object violates the schema. The
problem can be caused by an invalid attribute or a
required attribute that is missing entirely.
ApplicationException
- This exception is thrown if the user is unable to check
out a credential or credential pool for the shared access.
This problem can occur when the
credential or credential pool is already checked out by
another user.public java.util.Collection<CredentialLeaseMO> getCredentialLeases(SearchResultsStatus resultStatus) throws ApplicationException, java.rmi.RemoteException
resultStatus
- This parameter specifies SearchResultsStatus that indicates if the search has exceeded the size limit.
java.rmi.RemoteException
- This exception is thrown if the API cannot communicate with the platform.
ApplicationException
- This exception is thrown if the API cannot obtain the credential leases.public java.util.List<Request> checkin(java.util.List<DistinguishedName> leases) throws java.rmi.RemoteException, ApplicationException
leases
- This parameter specifies the list of DistinguishedName objects to be checked in.
java.rmi.RemoteException
- This Exception is thrown if the API is unable to communicate with the platform.
ApplicationException
- This Exception is thrown if the system is unable to submit the requests for all the credentials.
The problem can be caused by the fact that the authenticated user is not
the person who checked out the credentials, or the credentials being checked in are
removed by another client before this call.public java.util.List<Request> checkinAll() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- This Exception is thrown if the API is unable to communicate with the platform.
ApplicationException
- This Exception is thrown if the system is unable to submit the requests for all the credentials.
The problem can be caused by the fact when the authenticated user is not
the person who checked out the credentials, or the credentials being checked in are
removed by another client before this call.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |