public class SharedAccessPolicyManager
extends java.lang.Object
SharedAccessPolicyMO| Constructor and Description |
|---|
SharedAccessPolicyManager(PlatformContext platform,
javax.security.auth.Subject subject)
Constructs the manager with a platform context and a subject.
|
| Modifier and Type | Method and Description |
|---|---|
SharedAccessPolicyMO |
createPolicy(OrganizationalContainerMO container,
SharedAccessPolicy policy)
Creates a shared access policy with the no memberships and no entitlements in an organizational container.
|
SharedAccessPolicyMO |
createPolicy(OrganizationalContainerMO container,
SharedAccessPolicy policy,
java.util.Collection<SAMembership> memberships,
java.util.Collection<SAEntitlement> entitlements)
Creates a shared access policy with the given memberships and entitlements in an organizational container.
|
java.util.Collection<SharedAccessPolicyMO> |
getPolicies(OrganizationalContainerMO container,
java.lang.String policySearchInfo,
SearchResultsStatus resultStatus)
This method returns the shared access policies(s) with the the name or description within the given parent
container.
|
public SharedAccessPolicyManager(PlatformContext platform, javax.security.auth.Subject subject)
platform - PlatformContext that holds the platform connection information.subject - Subject that represents the authenticated caller.java.lang.IllegalArgumentException - Thrown if the platform or the subject parameter is null.public SharedAccessPolicyMO createPolicy(OrganizationalContainerMO container, SharedAccessPolicy policy) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
container - OrganizationalContainerMO the organizational container where the shared access policy will be created.policy - SharedAccessPolicy value object defining the attributes the shared access policy will
have.java.rmi.RemoteException - Thrown if unable to communicate with platform.AuthorizationException - Thrown if client is not authorized to create a shared access policy under the
specified organizational container.SchemaViolationException - Thrown if any of the attributes in the value object
violates the managed object's schema. This may be caused
by an invalid attribute or if a required attribute is
missing entirely.ApplicationException - Thrown if unable to submit the request. This might be caused by
the container being removed by another client
previous to this call.java.lang.IllegalArgumentException - Thrown if container or subject parameters are null.public SharedAccessPolicyMO createPolicy(OrganizationalContainerMO container, SharedAccessPolicy policy, java.util.Collection<SAMembership> memberships, java.util.Collection<SAEntitlement> entitlements) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
container - OrganizationalContainerMO the organizational container where the shared access policy will be created.policy - SharedAccessPolicy value object defining the attributes the shared access policy will
have.memberships - Collection of SAMembership value objects.entitlements - Collection of SAEntitlement value objects.java.rmi.RemoteException - Thrown if unable to communicate with platform.AuthorizationException - Thrown if client is not authorized to create a shared access policy under the
specified organizational container.SchemaViolationException - Thrown if any of the attributes in the value object
violates the managed object's schema. This may be caused
by an invalid attribute or if a required attribute is
missing entirely.ApplicationException - Thrown if unable to submit the request. This might be caused by
the container being removed by another client
previous to this call.java.lang.IllegalArgumentException - Thrown if container or subject parameters are null.public java.util.Collection<SharedAccessPolicyMO> getPolicies(OrganizationalContainerMO container, java.lang.String policySearchInfo, SearchResultsStatus resultStatus) throws java.rmi.RemoteException, ApplicationException
container - OrganizationalContainerMO The parameter represents the parent container used
to scope the search. An OrganizationalContainerMO object
must be provided to represent the context of the search.
This method uses sub-tree search of the container.policySearchInfo - This parameter specifies the name or description of the shared access policies to return.java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.ApplicationException - This exception is thrown if the method is unable to obtain the
provisioning policy. This might be caused
by another client removing the container before this call.SharedAccessPolicyMOIBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.